Skip to content
Snippets Groups Projects
Commit 48842323 authored by pengo's avatar pengo Committed by Camilla Löwy
Browse files

Wayland: Update serial on button callback

The serial needs to be update for starting operations like moving and
resizing a window.

Closes #992.
parent 9457cf33
Branches
No related tags found
No related merge requests found
...@@ -109,6 +109,8 @@ static void pointerHandleButton(void* data, ...@@ -109,6 +109,8 @@ static void pointerHandleButton(void* data,
if (!window) if (!window)
return; return;
_glfw.wl.pointerSerial = serial;
/* Makes left, right and middle 0, 1 and 2. Overall order follows evdev /* Makes left, right and middle 0, 1 and 2. Overall order follows evdev
* codes. */ * codes. */
glfwButton = button - BTN_LEFT; glfwButton = button - BTN_LEFT;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment