aboutsummaryrefslogtreecommitdiffstats
path: root/xevents.c
diff options
context:
space:
mode:
authorokan2015-11-10 20:05:33 +0000
committerokan2015-11-10 20:05:33 +0000
commit7c8ffa9d8af57ad9db9d8e99a694aebfa76ea11a (patch)
tree840e52bc116bc07eb0260799d51bd46caeb1baee /xevents.c
parentab17ebd814c221350b2742d35cab1c572a0765ef (diff)
downloadcwm-7c8ffa9d8af57ad9db9d8e99a694aebfa76ea11a.tar.gz
Start cleaning up name vs function differences; replace magic numbers.
Diffstat (limited to 'xevents.c')
-rw-r--r--xevents.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xevents.c b/xevents.c
index e135514..0709168 100644
--- a/xevents.c
+++ b/xevents.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: xevents.c,v 1.119 2015/08/27 18:42:56 okan Exp $
+ * $OpenBSD: xevents.c,v 1.120 2015/11/10 20:05:33 okan Exp $
*/
/*
@@ -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;