From 6a7db7ac250a3d6ddde0b589aaead9af23d9381d Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sun, 13 Oct 2002 21:54:36 +0000 Subject: fixed reconfigure grab bug --- src/Window.cc | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/src/Window.cc b/src/Window.cc index d60c907..438cfb4 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Window.cc,v 1.87 2002/09/14 12:31:18 fluxgen Exp $ +// $Id: Window.cc,v 1.88 2002/10/13 21:54:36 fluxgen Exp $ #include "Window.hh" @@ -34,6 +34,10 @@ #include "Windowmenu.hh" #include "StringUtil.hh" +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif // HAVE_CONFIG_H + #ifdef SLIT #include "Slit.hh" #endif // SLIT @@ -43,10 +47,6 @@ #define _GNU_SOURCE #endif // _GNU_SOURCE -#ifdef HAVE_CONFIG_H -#include "../config.h" -#endif // HAVE_CONFIG_H - #include #include @@ -1036,13 +1036,8 @@ void FluxboxWindow::reconfigure() { setFocusFlag(focused); configure(frame.x, frame.y, frame.width, frame.height); - - if (! (screen->isSloppyFocus() || screen->isSemiSloppyFocus())) { - XGrabButton(display, Button1, AnyModifier, frame.plate, True, ButtonPressMask, - GrabModeSync, GrabModeSync, None, None); - XUngrabButton(display, Button1, Mod1Mask|Mod2Mask|Mod3Mask, frame.plate); - } else - XUngrabButton(display, Button1, AnyModifier, frame.plate); + + grabButtons(); if (windowmenu) { windowmenu->move(windowmenu->x(), frame.y + frame.title_h); -- cgit v0.11.2