summary refs log tree commit diff
path: root/xevents.c
diff options
context:
space:
mode:
authorokan <okan>2015-11-10 20:05:33 +0000
committerokan <okan>2015-11-10 20:05:33 +0000
commite20110f3445ba7f388482f5be7b72a922e548c92 (patch)
treeb9ba53a37e27c9be31431ee065035ade6558710f /xevents.c
parent31c74e915752ef1c4ed637a4fd3cee5cd14a7d8b (diff)
downloadcwm-e20110f3445ba7f388482f5be7b72a922e548c92.tar.gz
cwm-e20110f3445ba7f388482f5be7b72a922e548c92.tar.xz
cwm-e20110f3445ba7f388482f5be7b72a922e548c92.zip
Start cleaning up name vs function differences; replace magic numbers.
Diffstat (limited to 'xevents.c')
-rw-r--r--xevents.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xevents.c b/xevents.c
index 33b6ea0..a3a12c2 100644
--- a/xevents.c
+++ b/xevents.c
@@ -232,7 +232,7 @@ xev_handle_buttonpress(XEvent *ee)
 
 	if (mb == NULL)
 		return;
-	if (mb->flags & CWM_WIN) {
+	if (mb->context == CWM_CONTEXT_CLIENT) {
 		if (((cc = client_find(e->window)) == NULL) &&
 		    (cc = client_current()) == NULL)
 			return;
@@ -285,7 +285,7 @@ xev_handle_keypress(XEvent *ee)
 
 	if (kb == NULL)
 		return;
-	if (kb->flags & CWM_WIN) {
+	if (kb->context == CWM_CONTEXT_CLIENT) {
 		if (((cc = client_find(e->window)) == NULL) &&
 		    (cc = client_current()) == NULL)
 			return;