From 9a047db3317fde847860b84c84a0bfb5cc8d16b5 Mon Sep 17 00:00:00 2001 From: Thomas Adam Date: Sat, 17 Apr 2021 16:34:21 +0100 Subject: [PATCH] absolute_geometry: clamp check to shaded windows When updating a window's active monitor, the absolute geometry only needs to be rechecked if the window is shaded, and at no other time. This builds on a previous commit, and again fixes #473 --- fvwm/geometry.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fvwm/geometry.c b/fvwm/geometry.c index 3f3b4c19f..541b4a46e 100644 --- a/fvwm/geometry.c +++ b/fvwm/geometry.c @@ -607,7 +607,8 @@ void update_absolute_geometry(FvwmWindow *fw) * bypass some of the sanity checks, and the screen assignment gets * outdated. */ - UPDATE_FVWM_SCREEN(fw); + if (IS_SHADED(fw)) + UPDATE_FVWM_SCREEN(fw); m = (fw && fw->m) ? fw->m : monitor_get_current(); /* store orig values in absolute coords */