From d6eeefe2346a6fd0f1868b4cab609792155eece8 Mon Sep 17 00:00:00 2001 From: tokyo4j Date: Thu, 17 Oct 2024 23:27:56 +0900 Subject: [PATCH] cursor: send a frame event after emulated button events This fixes the issue that emulated tablet/touchscreen button events sometimes don't take effect on applications immediately. --- src/input/cursor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/input/cursor.c b/src/input/cursor.c index 40ffd6db..b230c95e 100644 --- a/src/input/cursor.c +++ b/src/input/cursor.c @@ -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