From 84e5586ca1f517c97731f6d7655d7f812ad64a65 Mon Sep 17 00:00:00 2001 From: Mark Tiefenbruck Date: Fri, 21 Dec 2007 21:55:00 -0800 Subject: don't allow clients to move or resize fullscreen/maximized windows --- src/Window.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Window.cc b/src/Window.cc index 8d2bcc4..a993076 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -2447,6 +2447,12 @@ void FluxboxWindow::configureRequestEvent(XConfigureRequestEvent &cr) { } } + // don't allow moving/resizing fullscreen or maximized windows + if (isFullscreen() || isMaximizedHorz() && screen().getMaxIgnoreIncrement()) + cr.value_mask = cr.value_mask & ~(CWWidth | CWX); + if (isFullscreen() || isMaximizedVert() && screen().getMaxIgnoreIncrement()) + cr.value_mask = cr.value_mask & ~(CWHeight | CWY); + #ifdef REMEMBER // don't let misbehaving clients (e.g. MPlayer) move/resize their windows // just after creation if the user has a saved position/size -- cgit v0.11.2