1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-10-08 07:07:25 -04:00

Wayland: Update serial on button callback

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

Closes #992.
This commit is contained in:
pengo 2017-04-13 01:59:49 +00:00 committed by Camilla Löwy
parent 9457cf33d1
commit 4884232360

View File

@ -109,6 +109,8 @@ static void pointerHandleButton(void* data,
if (!window)
return;
_glfw.wl.pointerSerial = serial;
/* Makes left, right and middle 0, 1 and 2. Overall order follows evdev
* codes. */
glfwButton = button - BTN_LEFT;