]> git.mdlowis.com Git - proto/labwc.git/commitdiff
cursor: send a frame event after emulated button events (#2244)
authorHiroaki Yamamoto <hrak1529@gmail.com>
Thu, 17 Oct 2024 19:12:15 +0000 (04:12 +0900)
committerGitHub <noreply@github.com>
Thu, 17 Oct 2024 19:12:15 +0000 (20:12 +0100)
This fixes the issue that emulated tablet/touchscreen button events
sometimes don't take effect on applications immediately.

src/input/cursor.c

index 40ffd6db1f63dd00316f15ee529b0413cd9a2e45..b230c95e62945f2795d71a40d59216d0ab36e1e8 100644 (file)
@@ -1225,6 +1225,7 @@ cursor_emulate_button(struct seat *seat, uint32_t button,
                cursor_finish_button_release(seat, button);
                break;
        }
+       wlr_seat_pointer_notify_frame(seat->seat);
 }
 
 static int