From 552d9a70bd43fd02977bcec7f1fd4bef904bd39c Mon Sep 17 00:00:00 2001 From: Mark Tiefenbruck Date: Sun, 23 Dec 2007 20:28:24 -0800 Subject: minor fixes for handling ConfigureRequest events --- src/Window.cc | 8 +++----- 1 file 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) { int old_x = frame().x(), old_y = frame().y(); unsigned int old_w = frame().width(); unsigned int old_h = frame().height() - frame().titlebarHeight() - + frame().handleHeight(); + - frame().handleHeight(); int cx = old_x, cy = old_y, ignore = 0; unsigned int cw = old_w, ch = old_h; @@ -2447,10 +2447,8 @@ void FluxboxWindow::configureRequestEvent(XConfigureRequestEvent &cr) { ClientList::iterator it = clientList().begin(); ClientList::iterator it_end = clientList().end(); for (; it != it_end; ++it) { - if (*it != client && !(*it)->checkSizeHints(new_w, new_h)) { - sendConfigureNotify(); - return; - } + if (*it != client && !(*it)->checkSizeHints(new_w, new_h)) + cr.value_mask = cr.value_mask & ~(CWWidth | CWHeight); } } -- cgit v0.11.2