all repos — fluxbox @ 6ea1ed8cfa2915a75479daec2b21513a11cd0cee

custom fork of the fluxbox windowmanager

fix border width on synthetic ConfigureNotify events
Mark Tiefenbruck mark@fluxbox.org
commit

6ea1ed8cfa2915a75479daec2b21513a11cd0cee

parent

2f9f29df22e82f8648c048eec574443811cec5c1

2 files changed, 5 insertions(+), 5 deletions(-)

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

@@ -633,7 +633,8 @@ }

void FbWindow::sendConfigureNotify(int x, int y, - unsigned int width, unsigned int height) { + unsigned int width, unsigned int height, + unsigned int bw) { Display *disp = FbTk::App::instance()->display(); XEvent event; event.type = ConfigureNotify;

@@ -645,9 +646,7 @@ event.xconfigure.x = x;

event.xconfigure.y = y; event.xconfigure.width = width; event.xconfigure.height = height; - //!! TODO - event.xconfigure.border_width = 1; - //!! TODO + event.xconfigure.border_width = bw; event.xconfigure.above = None; event.xconfigure.override_redirect = false;
M src/FbTk/FbWindow.hhsrc/FbTk/FbWindow.hh

@@ -195,7 +195,8 @@ // used for composite

void setOpaque(unsigned char alpha); void setRenderer(FbWindowRenderer &renderer) { m_renderer = &renderer; } - void sendConfigureNotify(int x, int y, unsigned int width, unsigned int height); + void sendConfigureNotify(int x, int y, unsigned int width, + unsigned int height, unsigned int bw = 0); /// forces full background change, recalcing of alpha values if necessary void updateBackground(bool only_if_alpha);