mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-03 09:01:42 -05:00
Use unsigned for key/button up/down state in grabs
Since we just use it as a simple boolean flag, might as well convert it to unsigned. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
parent
3de517a092
commit
3f7048e0e9
3 changed files with 5 additions and 5 deletions
|
|
@ -253,7 +253,7 @@ data_device_end_drag_grab(struct wl_input_device *device)
|
||||||
|
|
||||||
static void
|
static void
|
||||||
drag_grab_button(struct wl_pointer_grab *grab,
|
drag_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_input_device *device =
|
struct wl_input_device *device =
|
||||||
container_of(grab, struct wl_input_device, drag_grab);
|
container_of(grab, struct wl_input_device, drag_grab);
|
||||||
|
|
|
||||||
|
|
@ -495,7 +495,7 @@ default_grab_motion(struct wl_pointer_grab *grab,
|
||||||
|
|
||||||
static void
|
static void
|
||||||
default_grab_button(struct wl_pointer_grab *grab,
|
default_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_input_device *device = grab->input_device;
|
struct wl_input_device *device = grab->input_device;
|
||||||
struct wl_resource *resource;
|
struct wl_resource *resource;
|
||||||
|
|
@ -524,7 +524,7 @@ static const struct wl_pointer_grab_interface
|
||||||
|
|
||||||
static void
|
static void
|
||||||
default_grab_key(struct wl_keyboard_grab *grab,
|
default_grab_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 wl_input_device *device = grab->input_device;
|
struct wl_input_device *device = grab->input_device;
|
||||||
struct wl_resource *resource;
|
struct wl_resource *resource;
|
||||||
|
|
|
||||||
|
|
@ -189,7 +189,7 @@ struct wl_pointer_grab_interface {
|
||||||
void (*motion)(struct wl_pointer_grab *grab,
|
void (*motion)(struct wl_pointer_grab *grab,
|
||||||
uint32_t time, int32_t x, int32_t y);
|
uint32_t time, int32_t x, int32_t y);
|
||||||
void (*button)(struct wl_pointer_grab *grab,
|
void (*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_pointer_grab {
|
struct wl_pointer_grab {
|
||||||
|
|
@ -202,7 +202,7 @@ struct wl_pointer_grab {
|
||||||
struct wl_keyboard_grab;
|
struct wl_keyboard_grab;
|
||||||
struct wl_keyboard_grab_interface {
|
struct wl_keyboard_grab_interface {
|
||||||
void (*key)(struct wl_keyboard_grab *grab, uint32_t time,
|
void (*key)(struct wl_keyboard_grab *grab, uint32_t time,
|
||||||
uint32_t key, int32_t state);
|
uint32_t key, uint32_t state);
|
||||||
};
|
};
|
||||||
|
|
||||||
struct wl_keyboard_grab {
|
struct wl_keyboard_grab {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue