Handle buttons in grab objects too

This commit is contained in:
Kristian Høgsberg 2010-12-08 11:07:57 -05:00
parent 9c3e8d734e
commit b3fc757cd8
2 changed files with 36 additions and 5 deletions

View file

@ -137,6 +137,8 @@ struct wl_grab;
struct wl_grab_interface {
void (*motion)(struct wl_grab *grab,
uint32_t time, int32_t x, int32_t y);
void (*button)(struct wl_grab *grab,
uint32_t time, int32_t button, int32_t state);
void (*end)(struct wl_grab *grab, uint32_t time);
};