summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-01-02 03:10:38 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-01-02 03:10:38 (GMT)
commit6ea1ed8cfa2915a75479daec2b21513a11cd0cee (patch)
treefaa519623cd4a029aab91534d8f2878533ded97e
parent2f9f29df22e82f8648c048eec574443811cec5c1 (diff)
downloadfluxbox_lack-6ea1ed8cfa2915a75479daec2b21513a11cd0cee.zip
fluxbox_lack-6ea1ed8cfa2915a75479daec2b21513a11cd0cee.tar.bz2
fix border width on synthetic ConfigureNotify events
-rw-r--r--src/FbTk/FbWindow.cc7
-rw-r--r--src/FbTk/FbWindow.hh3
2 files changed, 5 insertions, 5 deletions
diff --git a/src/FbTk/FbWindow.cc b/src/FbTk/FbWindow.cc
index 12492d9..12b16d9 100644
--- a/src/FbTk/FbWindow.cc
+++ b/src/FbTk/FbWindow.cc
@@ -633,7 +633,8 @@ void FbWindow::create(Window parent, int x, int y,
633 633
634 634
635void FbWindow::sendConfigureNotify(int x, int y, 635void FbWindow::sendConfigureNotify(int x, int y,
636 unsigned int width, unsigned int height) { 636 unsigned int width, unsigned int height,
637 unsigned int bw) {
637 Display *disp = FbTk::App::instance()->display(); 638 Display *disp = FbTk::App::instance()->display();
638 XEvent event; 639 XEvent event;
639 event.type = ConfigureNotify; 640 event.type = ConfigureNotify;
@@ -645,9 +646,7 @@ void FbWindow::sendConfigureNotify(int x, int y,
645 event.xconfigure.y = y; 646 event.xconfigure.y = y;
646 event.xconfigure.width = width; 647 event.xconfigure.width = width;
647 event.xconfigure.height = height; 648 event.xconfigure.height = height;
648 //!! TODO 649 event.xconfigure.border_width = bw;
649 event.xconfigure.border_width = 1;
650 //!! TODO
651 event.xconfigure.above = None; 650 event.xconfigure.above = None;
652 event.xconfigure.override_redirect = false; 651 event.xconfigure.override_redirect = false;
653 652
diff --git a/src/FbTk/FbWindow.hh b/src/FbTk/FbWindow.hh
index f266ec3..ae3526c 100644
--- a/src/FbTk/FbWindow.hh
+++ b/src/FbTk/FbWindow.hh
@@ -195,7 +195,8 @@ public:
195 void setOpaque(unsigned char alpha); 195 void setOpaque(unsigned char alpha);
196 196
197 void setRenderer(FbWindowRenderer &renderer) { m_renderer = &renderer; } 197 void setRenderer(FbWindowRenderer &renderer) { m_renderer = &renderer; }
198 void sendConfigureNotify(int x, int y, unsigned int width, unsigned int height); 198 void sendConfigureNotify(int x, int y, unsigned int width,
199 unsigned int height, unsigned int bw = 0);
199 200
200 /// forces full background change, recalcing of alpha values if necessary 201 /// forces full background change, recalcing of alpha values if necessary
201 void updateBackground(bool only_if_alpha); 202 void updateBackground(bool only_if_alpha);