don't allow clients to move or resize fullscreen/maximized windows

This commit is contained in:
Mark Tiefenbruck 2007-12-21 21:55:00 -08:00
parent 0a67bdce41
commit 84e5586ca1

View file

@ -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