فهرست منبع

Wayland: Update serial on button callback

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

Closes #992.
pengo 8 سال پیش
والد
کامیت
4884232360
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      src/wl_init.c

+ 2 - 0
src/wl_init.c

@@ -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;