From badc3d6f1c469b40bda70d842154e45384b9371e Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sat, 25 Dec 2021 14:39:28 -0800 Subject: xwindow: include >= fullscreen in vwm_xwin_should_manage() Just expanding the heuristic to everything >= fullscreen instead of precisely fullscreen. The specific impetus for this was fullscreen games, but from a security standpoint it makes sense to manage everything larger as well. --- src/xwindow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xwindow.c b/src/xwindow.c index 813399b..0b0cfbe 100644 --- a/src/xwindow.c +++ b/src/xwindow.c @@ -129,11 +129,11 @@ int vwm_xwin_should_manage(vwm_t *vwm, vwm_xwindow_t *xwin) if (!scr) return 1; - /* TODO: for now just using an exact fullscreen heuristic, but should really + /* TODO: for now just using an >= fullscreen heuristic, but should really * trigger for > XX% coverage. This suffices for managing annoying * override_redirect fullscreen windows. */ - if (xwin->attrs.width == scr->width && xwin->attrs.height == scr->height) + if (xwin->attrs.width >= scr->width && xwin->attrs.height >= scr->height) return 1; return 0; -- cgit v1.2.3