Use enum wl_pointer_button_state instead of integer
authorDaniel Stone <daniel@fooishbar.org>
Wed, 30 May 2012 15:31:51 +0000 (16:31 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 31 May 2012 19:42:47 +0000 (15:42 -0400)
commit4dbadb1556f296cf148ed91a1044004ec6c80707
tree1bc7caaadce31fca754d003c379b5b026c31d6e0
parent11d7139989860a1405124b889db2fbad087a5a09
Use enum wl_pointer_button_state instead of integer

Instead of using a uint32_t for state everywhere (except on the wire,
where that's still the call signature), use the new
wl_pointer_button_state enum, and explicit comparisons.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
20 files changed:
clients/clickdot.c
clients/desktop-shell.c
clients/dnd.c
clients/eventdemo.c
clients/flower.c
clients/gears.c
clients/resizor.c
clients/tablet-shell.c
clients/terminal.c
clients/view.c
clients/window.c
clients/window.h
src/compositor-wayland.c
src/compositor-x11.c
src/compositor.c
src/compositor.h
src/evdev-touchpad.c
src/evdev.c
src/shell.c
tests/test-client.c