summary refs log tree commit diff
path: root/xevents.c
diff options
context:
space:
mode:
authorokan <okan>2016-10-03 13:41:30 +0000
committerokan <okan>2016-10-03 13:41:30 +0000
commita8a111dffd2752fc5be7773a67d03306dd92d05e (patch)
tree058072f7e9624fae10bc8cd38ee29fa2a47f70f7 /xevents.c
parent1d3a6905f13d83e61cf5b7403a09d6899cd067e3 (diff)
downloadcwm-a8a111dffd2752fc5be7773a67d03306dd92d05e.tar.gz
cwm-a8a111dffd2752fc5be7773a67d03306dd92d05e.tar.xz
cwm-a8a111dffd2752fc5be7773a67d03306dd92d05e.zip
client_ptrwarp should not deal with unhiding or raising clients (non ptr
requests); most callers do this already - deal with the few that do not.
client_ptrwarp becomes a simple wrapper (setpos) but it will be expanded.
Diffstat (limited to 'xevents.c')
-rw-r--r--xevents.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xevents.c b/xevents.c
index 582f839..a4ff04d 100644
--- a/xevents.c
+++ b/xevents.c
@@ -344,6 +344,10 @@ xev_handle_clientmessage(XEvent *ee)
 		if ((cc = client_find(e->window)) != NULL) {
 			if ((old_cc = client_current()) != NULL)
 				client_ptrsave(old_cc);
+			if (cc->flags & CLIENT_HIDDEN)
+				client_unhide(cc);
+			else
+				client_raise(cc);
 			client_ptrwarp(cc);
 		}
 	} else if (e->message_type == ewmh[_NET_WM_DESKTOP]) {