aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2007-12-24 04:28:24 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2007-12-24 04:28:24 (GMT)
commit552d9a70bd43fd02977bcec7f1fd4bef904bd39c (patch)
tree964336a9a82ffc0f139255fcff087bd2fb5c8ca7
parentfbc305ca80e352240b32b833e8388fb9aa99fa72 (diff)
downloadfluxbox-552d9a70bd43fd02977bcec7f1fd4bef904bd39c.zip
fluxbox-552d9a70bd43fd02977bcec7f1fd4bef904bd39c.tar.bz2
minor fixes for handling ConfigureRequest events
-rw-r--r--src/Window.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/Window.cc b/src/Window.cc
index 9b3c3ce..d16815c 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -2435,7 +2435,7 @@ void FluxboxWindow::configureRequestEvent(XConfigureRequestEvent &cr) {
2435 int old_x = frame().x(), old_y = frame().y(); 2435 int old_x = frame().x(), old_y = frame().y();
2436 unsigned int old_w = frame().width(); 2436 unsigned int old_w = frame().width();
2437 unsigned int old_h = frame().height() - frame().titlebarHeight() 2437 unsigned int old_h = frame().height() - frame().titlebarHeight()
2438 + frame().handleHeight(); 2438 - frame().handleHeight();
2439 int cx = old_x, cy = old_y, ignore = 0; 2439 int cx = old_x, cy = old_y, ignore = 0;
2440 unsigned int cw = old_w, ch = old_h; 2440 unsigned int cw = old_w, ch = old_h;
2441 2441
@@ -2447,10 +2447,8 @@ void FluxboxWindow::configureRequestEvent(XConfigureRequestEvent &cr) {
2447 ClientList::iterator it = clientList().begin(); 2447 ClientList::iterator it = clientList().begin();
2448 ClientList::iterator it_end = clientList().end(); 2448 ClientList::iterator it_end = clientList().end();
2449 for (; it != it_end; ++it) { 2449 for (; it != it_end; ++it) {
2450 if (*it != client && !(*it)->checkSizeHints(new_w, new_h)) { 2450 if (*it != client && !(*it)->checkSizeHints(new_w, new_h))
2451 sendConfigureNotify(); 2451 cr.value_mask = cr.value_mask & ~(CWWidth | CWHeight);
2452 return;
2453 }
2454 } 2452 }
2455 } 2453 }
2456 2454