diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2012-10-26 14:35:42 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2012-10-26 14:35:42 +0000 |
commit | d210d99ccecfaa2ef23a65609dc8cbb26bcfe236 (patch) | |
tree | 8de6dd8ecc536d54cb9a8c4b2f0170dde99fbd0d /window-choose.c | |
parent | 2a609b332f6cdc2ef6f3ffb525a3c74ada738ec4 (diff) |
Make mouse event structure clearer by defining events (up, click, drag)
and simplifying how buttons and wheels are represented, from Ailin
Nemui. Should be no functional changes.
Diffstat (limited to 'window-choose.c')
-rw-r--r-- | window-choose.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/window-choose.c b/window-choose.c index 019f4125..ab0d803b 100644 --- a/window-choose.c +++ b/window-choose.c @@ -623,7 +623,7 @@ window_choose_mouse( struct window_choose_mode_item *item; u_int idx; - if ((m->b & 3) == 3) + if (~m->event & MOUSE_EVENT_CLICK) return; if (m->x >= screen_size_x(s)) return; |