Skip to content

Commit

Permalink
absolute_geometry: clamp check to shaded windows
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ThomasAdam committed Apr 17, 2021
1 parent adfd7c1 commit d7a890b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fvwm/geometry.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit d7a890b

Please sign in to comment.