summary refs log tree commit diff
path: root/xevents.c
diff options
context:
space:
mode:
authorokan <okan>2016-10-04 20:15:55 +0000
committerokan <okan>2016-10-04 20:15:55 +0000
commita37606c63ff059a458023ddef1bd6e8926497f18 (patch)
tree32d184fc7e04a98f172708d24e595fa96f1f5137 /xevents.c
parent5c13775d31ce277bba94c68daff12cf50224aba0 (diff)
downloadcwm-a37606c63ff059a458023ddef1bd6e8926497f18.tar.gz
cwm-a37606c63ff059a458023ddef1bd6e8926497f18.tar.xz
cwm-a37606c63ff059a458023ddef1bd6e8926497f18.zip
When removing xrandr regions, ensure clients are within the bounds of
the screen; adapted from an ancient diff from Sviatoslav Chagaev. Things
in this area will likely change, but put this in so it works now and
serves as a reminder.
Diffstat (limited to 'xevents.c')
-rw-r--r--xevents.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xevents.c b/xevents.c
index a4ff04d..3dab168 100644
--- a/xevents.c
+++ b/xevents.c
@@ -386,6 +386,7 @@ xev_handle_randr(XEvent *ee)
 		if (sc->which == i) {
 			XRRUpdateConfiguration(ee);
 			screen_update_geometry(sc);
+			screen_assert_clients_within(sc);
 		}
 	}
 }