all repos — fluxbox @ 9cb78eaa3b7a588fea60830752689ecf8db5b16e

custom fork of the fluxbox windowmanager

reordering
Mathias Gumz akira at fluxbox dot org
commit

9cb78eaa3b7a588fea60830752689ecf8db5b16e

parent

6717a1c805529ea6e1b1c19a591f876c9c8803db

2 files changed, 11 insertions(+), 13 deletions(-)

jump to
M src/FbTk/Shape.ccsrc/FbTk/Shape.cc

@@ -43,6 +43,7 @@ #include <X11/extensions/shape.h>

#endif // SHAPE #include <algorithm> +#include <vector> using std::min;

@@ -92,9 +93,17 @@

return pm.release(); } +struct CornerPixmaps { + FbPixmap topleft; + FbPixmap topright; + FbPixmap botleft; + FbPixmap botright; }; -std::vector<Shape::CornerPixmaps> Shape::s_corners; +// unfortunately, we need a separate pixmap per screen +std::vector<CornerPixmaps> s_corners; + +}; // end of anonymous namespace Shape::Shape(FbWindow &win, int shapeplaces): m_win(&win),

@@ -134,7 +143,7 @@

void Shape::initCorners(int screen_num) { if (s_corners.size() == 0) s_corners.resize(ScreenCount(App::instance()->display())); - + static const unsigned char left_bits[] = { 0xc0, 0xf8, 0xfc, 0xfe, 0xfe, 0xfe, 0xff, 0xff }; static const unsigned char right_bits[] = { 0x03, 0x1f, 0x3f, 0x7f, 0x7f, 0x7f, 0xff, 0xff}; static const unsigned char bottom_left_bits[] = { 0xff, 0xff, 0xfe, 0xfe, 0xfe, 0xfc, 0xf8, 0xc0 };
M src/FbTk/Shape.hhsrc/FbTk/Shape.hh

@@ -24,8 +24,6 @@ #define SHAPE_HH

#include "FbPixmap.hh" -#include <vector> - namespace FbTk { class FbWindow;

@@ -67,17 +65,8 @@ int m_shapesource_xoff, m_shapesource_yoff;

void initCorners(int screen_num); - struct CornerPixmaps { - FbPixmap topleft; - FbPixmap topright; - FbPixmap botleft; - FbPixmap botright; - }; - // unfortunately, we need a separate pixmap per screen - static std::vector<CornerPixmaps> s_corners; int m_shapeplaces; ///< places to shape - }; }; // end namespace FbTk