From 515ba262666c04977a508e35b8304f21e11497a0 Mon Sep 17 00:00:00 2001 From: seanpringle Date: Sun, 2 Sep 2012 16:18:38 +1000 Subject: [PATCH] ensure fullscreen window is raised at first --- xoat.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xoat.c b/xoat.c index fb337d4..2a8700d 100644 --- a/xoat.c +++ b/xoat.c @@ -772,6 +772,7 @@ void key_press(XKeyEvent *e) client_close(c); break; case ACTION_MOVE_MONITOR_INC: + client_raise(c); if (c->monitor < nmonitors-1) { c->monitor++; @@ -779,6 +780,7 @@ void key_press(XKeyEvent *e) } break; case ACTION_MOVE_MONITOR_DEC: + client_raise(c); if (c->monitor > 0) { c->monitor--; @@ -787,6 +789,7 @@ void key_press(XKeyEvent *e) break; case ACTION_FULLSCREEN_TOGGLE: spot = c->spot; + client_raise(c); if (client_state(c, atoms[_NET_WM_STATE_FULLSCREEN])) { client_drop_state(c, atoms[_NET_WM_STATE_FULLSCREEN]);