Rename motion_grab to implicit_grab
Let's just use the same terms as X.
This commit is contained in:
+11
-11
@@ -1194,8 +1194,8 @@ pick_surface(struct wl_input_device *device, int32_t *sx, int32_t *sy)
|
|||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
motion_grab_motion(struct wl_grab *grab,
|
implicit_grab_motion(struct wl_grab *grab,
|
||||||
uint32_t time, int32_t x, int32_t y)
|
uint32_t time, int32_t x, int32_t y)
|
||||||
{
|
{
|
||||||
struct wlsc_input_device *device =
|
struct wlsc_input_device *device =
|
||||||
(struct wlsc_input_device *) grab->input_device;
|
(struct wlsc_input_device *) grab->input_device;
|
||||||
@@ -1213,8 +1213,8 @@ motion_grab_motion(struct wl_grab *grab,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
motion_grab_button(struct wl_grab *grab,
|
implicit_grab_button(struct wl_grab *grab,
|
||||||
uint32_t time, int32_t button, int32_t state)
|
uint32_t time, int32_t button, int32_t state)
|
||||||
{
|
{
|
||||||
struct wl_resource *resource;
|
struct wl_resource *resource;
|
||||||
|
|
||||||
@@ -1225,14 +1225,14 @@ motion_grab_button(struct wl_grab *grab,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
motion_grab_end(struct wl_grab *grab, uint32_t time)
|
implicit_grab_end(struct wl_grab *grab, uint32_t time)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct wl_grab_interface motion_grab_interface = {
|
static const struct wl_grab_interface implicit_grab_interface = {
|
||||||
motion_grab_motion,
|
implicit_grab_motion,
|
||||||
motion_grab_button,
|
implicit_grab_button,
|
||||||
motion_grab_end
|
implicit_grab_end
|
||||||
};
|
};
|
||||||
|
|
||||||
WL_EXPORT void
|
WL_EXPORT void
|
||||||
@@ -1394,7 +1394,7 @@ notify_button(struct wl_input_device *device,
|
|||||||
compositor->shell->activate(compositor->shell,
|
compositor->shell->activate(compositor->shell,
|
||||||
surface, wd, time);
|
surface, wd, time);
|
||||||
wl_input_device_start_grab(device,
|
wl_input_device_start_grab(device,
|
||||||
&device->motion_grab,
|
&device->implicit_grab,
|
||||||
button, time);
|
button, time);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1666,7 +1666,7 @@ wlsc_input_device_init(struct wlsc_input_device *device,
|
|||||||
device->hotspot_y = 16;
|
device->hotspot_y = 16;
|
||||||
device->modifier_state = 0;
|
device->modifier_state = 0;
|
||||||
|
|
||||||
device->input_device.motion_grab.interface = &motion_grab_interface;
|
device->input_device.implicit_grab.interface = &implicit_grab_interface;
|
||||||
|
|
||||||
wl_list_insert(ec->input_device_list.prev, &device->link);
|
wl_list_insert(ec->input_device_list.prev, &device->link);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user