Change key/button grab bindings to take unsigned state

'state' here meaning 'is it up or down?', obviously.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
Daniel Stone
2012-05-04 11:21:54 +01:00
committed by Kristian Høgsberg
parent 7ceeb7dd43
commit da5b93c8d7
16 changed files with 24 additions and 23 deletions
+1 -1
View File
@@ -1604,7 +1604,7 @@ weston_surface_activate(struct weston_surface *surface,
WL_EXPORT void
notify_button(struct wl_input_device *device,
uint32_t time, int32_t button, int32_t state)
uint32_t time, int32_t button, uint32_t state)
{
struct weston_input_device *wd = (struct weston_input_device *) device;
struct weston_compositor *compositor = wd->compositor;
+1 -1
View File
@@ -416,7 +416,7 @@ notify_motion(struct wl_input_device *device,
uint32_t time, int x, int y);
void
notify_button(struct wl_input_device *device,
uint32_t time, int32_t button, int32_t state);
uint32_t time, int32_t button, uint32_t state);
void
notify_axis(struct wl_input_device *device,
uint32_t time, uint32_t axis, int32_t value);
+5 -5
View File
@@ -327,7 +327,7 @@ move_grab_motion(struct wl_pointer_grab *grab,
static void
move_grab_button(struct wl_pointer_grab *grab,
uint32_t time, uint32_t button, int32_t state)
uint32_t time, uint32_t button, uint32_t state)
{
struct shell_grab *shell_grab = container_of(grab, struct shell_grab,
grab);
@@ -587,7 +587,7 @@ resize_grab_motion(struct wl_pointer_grab *grab,
static void
resize_grab_button(struct wl_pointer_grab *grab,
uint32_t time, uint32_t button, int32_t state)
uint32_t time, uint32_t button, uint32_t state)
{
struct weston_resize_grab *resize = (struct weston_resize_grab *) grab;
struct wl_input_device *device = grab->input_device;
@@ -1062,7 +1062,7 @@ popup_grab_motion(struct wl_pointer_grab *grab,
static void
popup_grab_button(struct wl_pointer_grab *grab,
uint32_t time, uint32_t button, int32_t state)
uint32_t time, uint32_t button, uint32_t state)
{
struct wl_resource *resource;
struct shell_surface *shsurf =
@@ -1711,7 +1711,7 @@ rotate_grab_motion(struct wl_pointer_grab *grab,
static void
rotate_grab_button(struct wl_pointer_grab *grab,
uint32_t time, uint32_t button, int32_t state)
uint32_t time, uint32_t button, uint32_t state)
{
struct rotate_grab *rotate =
container_of(grab, struct rotate_grab, base.grab);
@@ -2403,7 +2403,7 @@ switcher_destroy(struct switcher *switcher, uint32_t time)
static void
switcher_key(struct wl_keyboard_grab *grab,
uint32_t time, uint32_t key, int32_t state)
uint32_t time, uint32_t key, uint32_t state)
{
struct switcher *switcher = container_of(grab, struct switcher, grab);
struct weston_input_device *device =
+1 -1
View File
@@ -249,7 +249,7 @@ struct binding_keyboard_grab {
static void
binding_key(struct wl_keyboard_grab *grab,
uint32_t time, uint32_t key, int32_t state)
uint32_t time, uint32_t key, uint32_t state)
{
struct binding_keyboard_grab *b =
container_of(grab, struct binding_keyboard_grab, grab);