Wayland: Fix a regression in the previous release that caused mouse cursor animation and keyboard repeat to stop working when switching seats
Fixes #5188
This commit is contained in:
parent
9184de1997
commit
646bdbd002
@ -40,6 +40,9 @@ Detailed list of changes
|
|||||||
|
|
||||||
- Reduce startup latency by ~50 milliseconds when running kittens via key-bindings or remote control (:iss:`5159`)
|
- Reduce startup latency by ~50 milliseconds when running kittens via key-bindings or remote control (:iss:`5159`)
|
||||||
|
|
||||||
|
- Wayland: Fix a regression in the previous release that caused mouse cursor
|
||||||
|
animation and keyboard repeat to stop working when switching seats (:iss:`5188`)
|
||||||
|
|
||||||
|
|
||||||
0.25.2 [2022-06-07]
|
0.25.2 [2022-06-07]
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|||||||
10
glfw/wl_init.c
vendored
10
glfw/wl_init.c
vendored
@ -573,10 +573,7 @@ static void seatHandleCapabilities(void* data UNUSED,
|
|||||||
{
|
{
|
||||||
wl_pointer_destroy(_glfw.wl.pointer);
|
wl_pointer_destroy(_glfw.wl.pointer);
|
||||||
_glfw.wl.pointer = NULL;
|
_glfw.wl.pointer = NULL;
|
||||||
if (_glfw.wl.cursorAnimationTimer) {
|
if (_glfw.wl.cursorAnimationTimer) toggleTimer(&_glfw.wl.eventLoopData, _glfw.wl.cursorAnimationTimer, 0);
|
||||||
removeTimer(&_glfw.wl.eventLoopData, _glfw.wl.cursorAnimationTimer);
|
|
||||||
_glfw.wl.cursorAnimationTimer = 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((caps & WL_SEAT_CAPABILITY_KEYBOARD) && !_glfw.wl.keyboard)
|
if ((caps & WL_SEAT_CAPABILITY_KEYBOARD) && !_glfw.wl.keyboard)
|
||||||
@ -589,10 +586,7 @@ static void seatHandleCapabilities(void* data UNUSED,
|
|||||||
wl_keyboard_destroy(_glfw.wl.keyboard);
|
wl_keyboard_destroy(_glfw.wl.keyboard);
|
||||||
_glfw.wl.keyboard = NULL;
|
_glfw.wl.keyboard = NULL;
|
||||||
_glfw.wl.keyboardFocusId = 0;
|
_glfw.wl.keyboardFocusId = 0;
|
||||||
if (_glfw.wl.keyRepeatInfo.keyRepeatTimer) {
|
if (_glfw.wl.keyRepeatInfo.keyRepeatTimer) toggleTimer(&_glfw.wl.eventLoopData, _glfw.wl.keyRepeatInfo.keyRepeatTimer, 0);
|
||||||
removeTimer(&_glfw.wl.eventLoopData, _glfw.wl.keyRepeatInfo.keyRepeatTimer);
|
|
||||||
_glfw.wl.keyRepeatInfo.keyRepeatTimer = 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user