mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 06:47:19 +00:00
[client] wayland: create wl_relative_pointer when creating wl_pointer
This commit is contained in:
parent
d96b2ef1fb
commit
194afa2d75
@ -328,6 +328,15 @@ static void handlePointerCapability(uint32_t capabilities)
|
|||||||
wlWm.pointer = wl_seat_get_pointer(wlWm.seat);
|
wlWm.pointer = wl_seat_get_pointer(wlWm.seat);
|
||||||
wl_pointer_add_listener(wlWm.pointer, &pointerListener, NULL);
|
wl_pointer_add_listener(wlWm.pointer, &pointerListener, NULL);
|
||||||
waylandSetPointer(wlWm.cursorId);
|
waylandSetPointer(wlWm.cursorId);
|
||||||
|
|
||||||
|
if (wlWm.warpSupport)
|
||||||
|
{
|
||||||
|
wlWm.relativePointer =
|
||||||
|
zwp_relative_pointer_manager_v1_get_relative_pointer(
|
||||||
|
wlWm.relativePointerManager, wlWm.pointer);
|
||||||
|
zwp_relative_pointer_v1_add_listener(wlWm.relativePointer,
|
||||||
|
&relativePointerListener, NULL);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -399,15 +408,6 @@ bool waylandInputInit(void)
|
|||||||
wl_seat_add_listener(wlWm.seat, &seatListener, NULL);
|
wl_seat_add_listener(wlWm.seat, &seatListener, NULL);
|
||||||
wl_display_roundtrip(wlWm.display);
|
wl_display_roundtrip(wlWm.display);
|
||||||
|
|
||||||
if (wlWm.warpSupport)
|
|
||||||
{
|
|
||||||
wlWm.relativePointer =
|
|
||||||
zwp_relative_pointer_manager_v1_get_relative_pointer(
|
|
||||||
wlWm.relativePointerManager, wlWm.pointer);
|
|
||||||
zwp_relative_pointer_v1_add_listener(wlWm.relativePointer,
|
|
||||||
&relativePointerListener, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
LG_LOCK_INIT(wlWm.confineLock);
|
LG_LOCK_INIT(wlWm.confineLock);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user