Update serial on Wayland button callback

The serial needs to be update for starting operations like moving and
resizing a window.
This commit is contained in:
Felipe Ferreira da Silva 2017-04-08 01:06:56 -03:00
parent 66b16f1fc1
commit c6dd37cffd

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;