Start cleaning up name vs function differences; replace magic numbers.

This commit is contained in:
okan
2015-11-10 20:05:33 +00:00
parent 31c74e9157
commit e20110f344
8 changed files with 170 additions and 149 deletions

View File

@@ -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;