mirror of
https://github.com/glfw/glfw.git
synced 2025-04-08 06:43:14 +00:00
Wayland: Clean up pointer helper function order
(cherry picked from commit 7be6a2cabe
)
This commit is contained in:
parent
5f3e5542cf
commit
0ee9b7281b
1 changed files with 9 additions and 9 deletions
|
@ -2460,15 +2460,6 @@ static void lockedPointerHandleLocked(void* userData,
|
|||
{
|
||||
}
|
||||
|
||||
static void unlockPointer(_GLFWwindow* window)
|
||||
{
|
||||
zwp_relative_pointer_v1_destroy(window->wl.relativePointer);
|
||||
window->wl.relativePointer = NULL;
|
||||
|
||||
zwp_locked_pointer_v1_destroy(window->wl.lockedPointer);
|
||||
window->wl.lockedPointer = NULL;
|
||||
}
|
||||
|
||||
static void lockedPointerHandleUnlocked(void* userData,
|
||||
struct zwp_locked_pointer_v1* lockedPointer)
|
||||
{
|
||||
|
@ -2509,6 +2500,15 @@ static void lockPointer(_GLFWwindow* window)
|
|||
window);
|
||||
}
|
||||
|
||||
static void unlockPointer(_GLFWwindow* window)
|
||||
{
|
||||
zwp_relative_pointer_v1_destroy(window->wl.relativePointer);
|
||||
window->wl.relativePointer = NULL;
|
||||
|
||||
zwp_locked_pointer_v1_destroy(window->wl.lockedPointer);
|
||||
window->wl.lockedPointer = NULL;
|
||||
}
|
||||
|
||||
void _glfwPlatformSetCursor(_GLFWwindow* window, _GLFWcursor* cursor)
|
||||
{
|
||||
if (!_glfw.wl.pointer)
|
||||
|
|
Loading…
Add table
Reference in a new issue