Use grab object for motion grabs too

Now all grabs use grab objects, so drop the grab enum.
This commit is contained in:
Kristian Høgsberg 2010-12-07 17:06:15 -05:00
parent 57db067cec
commit 8321e693d2
2 changed files with 54 additions and 63 deletions

View file

@ -91,12 +91,10 @@ struct wlsc_input_device {
uint32_t modifier_state;
struct wl_grab *grab_object;
enum wlsc_grab_type grab;
struct wl_grab *grab;
struct wl_grab motion_grab;
uint32_t grab_time;
int32_t grab_x, grab_y;
int32_t grab_width, grab_height;
int32_t grab_dx, grab_dy;
uint32_t grab_button;
struct wl_listener grab_listener;
};