summaryrefslogtreecommitdiffstats
path: root/src/wayland-server.h
diff options
context:
space:
mode:
authorPekka Paalanen <ppaalanen@gmail.com>2012-03-30 16:38:39 +0300
committerKristian Høgsberg <krh@bitplanet.net>2012-03-30 10:14:51 -0400
commit4560b6b6b4d19a65350591d9bbc83df1cdc7bd13 (patch)
treee65dabb770e931e14055649946c5e18525d32aa0 /src/wayland-server.h
parentscanner: fix a signedness warning (diff)
downloadwayland-4560b6b6b4d19a65350591d9bbc83df1cdc7bd13.tar
wayland-4560b6b6b4d19a65350591d9bbc83df1cdc7bd13.tar.gz
wayland-4560b6b6b4d19a65350591d9bbc83df1cdc7bd13.tar.bz2
wayland-4560b6b6b4d19a65350591d9bbc83df1cdc7bd13.tar.lz
wayland-4560b6b6b4d19a65350591d9bbc83df1cdc7bd13.tar.xz
wayland-4560b6b6b4d19a65350591d9bbc83df1cdc7bd13.tar.zst
wayland-4560b6b6b4d19a65350591d9bbc83df1cdc7bd13.zip
server: fix button signedness in wl_grab_interface
wl_input_device::grab_button is unsigned but the button parameter to wl_grab_interface::button is signed. This lead to a warning in data-device.c. The button number is unsigned in the protocol, so make it unsigned in the wl_grab_interface API, too. Fixes the compiler warning "comparison between signed and unsigned integer expressions". Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
Diffstat (limited to 'src/wayland-server.h')
-rw-r--r--src/wayland-server.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wayland-server.h b/src/wayland-server.h
index 1a0878b..2e52244 100644
--- a/src/wayland-server.h
+++ b/src/wayland-server.h
@@ -143,7 +143,7 @@ struct wl_pointer_grab_interface {
void (*motion)(struct wl_pointer_grab *grab,
uint32_t time, int32_t x, int32_t y);
void (*button)(struct wl_pointer_grab *grab,
- uint32_t time, int32_t button, int32_t state);
+ uint32_t time, uint32_t button, int32_t state);
};
struct wl_pointer_grab {