if (!GDK_IS_SURFACE (wl_surface_get_user_data (surface)))
return;
- _gdk_wayland_display_update_serial (display_wayland, serial);
-
seat->pointer_info.focus = wl_surface_get_user_data (surface);
g_object_ref (seat->pointer_info.focus);
if (!seat->pointer_info.focus)
return;
- _gdk_wayland_display_update_serial (display_wayland, serial);
grab = _gdk_display_get_last_device_grab (seat->display,
seat->logical_pointer);
if (!seat->pointer_info.focus)
return;
- _gdk_wayland_display_update_serial (display, serial);
-
switch (button)
{
case BTN_LEFT:
{
GdkWaylandSeat *seat = data;
GdkEvent *event;
- GdkWaylandDisplay *display = GDK_WAYLAND_DISPLAY (seat->display);
if (!surface)
return;
if (!GDK_IS_SURFACE (wl_surface_get_user_data (surface)))
return;
- _gdk_wayland_display_update_serial (display, serial);
-
seat->keyboard_focus = wl_surface_get_user_data (surface);
g_object_ref (seat->keyboard_focus);
seat->repeat_key = 0;
{
GdkWaylandSeat *seat = data;
GdkEvent *event;
- GdkWaylandDisplay *display = GDK_WAYLAND_DISPLAY (seat->display);
if (!seat->keyboard_focus)
return;
*/
stop_key_repeat (seat);
- _gdk_wayland_display_update_serial (display, serial);
-
event = gdk_focus_event_new (seat->keyboard_focus,
seat->logical_keyboard,
FALSE);
uint32_t state_w)
{
GdkWaylandSeat *seat = data;
- GdkWaylandDisplay *display = GDK_WAYLAND_DISPLAY (seat->display);
if (!seat->keyboard_focus)
return;
seat->keyboard_time = time;
seat->keyboard_key_serial = serial;
seat->repeat_count = 0;
- _gdk_wayland_display_update_serial (display, serial);
deliver_key_event (data, time, key + 8, state_w, FALSE);
}
wl_fixed_t y)
{
GdkWaylandSeat *seat = data;
- GdkWaylandDisplay *display = GDK_WAYLAND_DISPLAY (seat->display);
GdkWaylandTouchData *touch;
GdkEvent *event;
- _gdk_wayland_display_update_serial (display, serial);
-
if (!wl_surface)
return;
int32_t id)
{
GdkWaylandSeat *seat = data;
- GdkWaylandDisplay *display = GDK_WAYLAND_DISPLAY (seat->display);
GdkWaylandTouchData *touch;
GdkEvent *event;
- _gdk_wayland_display_update_serial (display, serial);
-
touch = gdk_wayland_seat_get_touch (seat, id);
if (!touch)
return;
uint32_t fingers)
{
GdkWaylandSeat *seat = data;
- GdkWaylandDisplay *display = GDK_WAYLAND_DISPLAY (seat->display);
-
- _gdk_wayland_display_update_serial (display, serial);
emit_gesture_swipe_event (seat,
GDK_TOUCHPAD_GESTURE_PHASE_BEGIN,
int32_t cancelled)
{
GdkWaylandSeat *seat = data;
- GdkWaylandDisplay *display = GDK_WAYLAND_DISPLAY (seat->display);
GdkTouchpadGesturePhase phase;
- _gdk_wayland_display_update_serial (display, serial);
-
phase = (cancelled) ?
GDK_TOUCHPAD_GESTURE_PHASE_CANCEL :
GDK_TOUCHPAD_GESTURE_PHASE_END;
uint32_t fingers)
{
GdkWaylandSeat *seat = data;
- GdkWaylandDisplay *display = GDK_WAYLAND_DISPLAY (seat->display);
- _gdk_wayland_display_update_serial (display, serial);
emit_gesture_pinch_event (seat,
GDK_TOUCHPAD_GESTURE_PHASE_BEGIN,
time, fingers, 0, 0, 1, 0);
int32_t cancelled)
{
GdkWaylandSeat *seat = data;
- GdkWaylandDisplay *display = GDK_WAYLAND_DISPLAY (seat->display);
GdkTouchpadGesturePhase phase;
- _gdk_wayland_display_update_serial (display, serial);
-
phase = (cancelled) ?
GDK_TOUCHPAD_GESTURE_PHASE_CANCEL :
GDK_TOUCHPAD_GESTURE_PHASE_END;
uint32_t fingers)
{
GdkWaylandSeat *seat = data;
- GdkWaylandDisplay *display = GDK_WAYLAND_DISPLAY (seat->display);
-
- _gdk_wayland_display_update_serial (display, serial);
emit_gesture_hold_event (seat,
GDK_TOUCHPAD_GESTURE_PHASE_BEGIN,
int32_t cancelled)
{
GdkWaylandSeat *seat = data;
- GdkWaylandDisplay *display = GDK_WAYLAND_DISPLAY (seat->display);
GdkTouchpadGesturePhase phase;
- _gdk_wayland_display_update_serial (display, serial);
-
phase = (cancelled) ?
GDK_TOUCHPAD_GESTURE_PHASE_CANCEL :
GDK_TOUCHPAD_GESTURE_PHASE_END;
{
GdkWaylandTabletToolData *tool = data;
GdkWaylandTabletData *tablet = zwp_tablet_v2_get_user_data (wp_tablet);
- GdkWaylandSeat *seat = GDK_WAYLAND_SEAT (tablet->seat);
- GdkWaylandDisplay *display_wayland = GDK_WAYLAND_DISPLAY (seat->display);
GdkSurface *surface;
GdkEvent *event;
tool->current_tablet = tablet;
tablet->current_tool = tool;
- _gdk_wayland_display_update_serial (display_wayland, serial);
tablet->pointer_info.enter_serial = serial;
tablet->pointer_info.focus = g_object_ref (surface);
gdk_wayland_surface_get_wl_output (surface));
pointer_surface_update_scale (tablet->logical_device);
- GDK_SEAT_NOTE (seat, EVENTS,
+ GDK_SEAT_NOTE (tablet->seat, EVENTS,
g_message ("proximity in, seat %p surface %p tool %d",
- seat, tablet->pointer_info.focus,
+ tablet->seat, tablet->pointer_info.focus,
gdk_device_tool_get_tool_type (tool->tool)));
}
{
GdkWaylandTabletToolData *tool = data;
GdkWaylandTabletData *tablet = tool->current_tablet;
- GdkWaylandSeat *seat = GDK_WAYLAND_SEAT (tool->seat);
- GdkWaylandDisplay *display_wayland = GDK_WAYLAND_DISPLAY (seat->display);
if (!tablet || !tablet->pointer_info.focus)
return;
- _gdk_wayland_display_update_serial (display_wayland, serial);
tablet->pointer_info.press_serial = serial;
tablet_create_button_event_frame (tablet, GDK_BUTTON_PRESS, GDK_BUTTON_PRIMARY);