diff options
author | okan <okan> | 2011-07-23 13:09:11 +0000 |
---|---|---|
committer | okan <okan> | 2011-07-23 13:09:11 +0000 |
commit | 69ac0624cc07ffc8df11287a8827b42773371b0e (patch) | |
tree | 18d6f6f1548820aacf4b673a948860cb157b98d2 /mousefunc.c | |
parent | c585dfbf32b69daa483ad129cc2349ce26102dec (diff) | |
download | cwm-69ac0624cc07ffc8df11287a8827b42773371b0e.tar.gz cwm-69ac0624cc07ffc8df11287a8827b42773371b0e.tar.xz cwm-69ac0624cc07ffc8df11287a8827b42773371b0e.zip |
Clarify defines and make them not look like non-local ones; started by a
small diff from Thomas Pfaff. ok oga@
Diffstat (limited to 'mousefunc.c')
-rw-r--r-- | mousefunc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mousefunc.c b/mousefunc.c index 4d39fa9..40158d2 100644 --- a/mousefunc.c +++ b/mousefunc.c @@ -88,14 +88,14 @@ mousefunc_window_resize(struct client_ctx *cc, void *arg) client_raise(cc); client_ptrsave(cc); - if (xu_ptr_grab(cc->win, MouseMask, Cursor_resize) < 0) + if (xu_ptr_grab(cc->win, MOUSEMASK, Cursor_resize) < 0) return; xu_ptr_setpos(cc->win, cc->geom.width, cc->geom.height); mousefunc_sweep_draw(cc); for (;;) { - XMaskEvent(X_Dpy, MouseMask|ExposureMask, &ev); + XMaskEvent(X_Dpy, MOUSEMASK|ExposureMask, &ev); switch (ev.type) { case Expose: @@ -144,13 +144,13 @@ mousefunc_window_move(struct client_ctx *cc, void *arg) if (cc->flags & CLIENT_FREEZE) return; - if (xu_ptr_grab(cc->win, MouseMask, Cursor_move) < 0) + if (xu_ptr_grab(cc->win, MOUSEMASK, Cursor_move) < 0) return; xu_ptr_getpos(cc->win, &px, &py); for (;;) { - XMaskEvent(X_Dpy, MouseMask|ExposureMask, &ev); + XMaskEvent(X_Dpy, MOUSEMASK|ExposureMask, &ev); switch (ev.type) { case Expose: |