From c853cc63c67304cbacd6a7407b12a04e2897573e Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <2546789017@qq.com> Date: Sun, 8 May 2022 16:42:55 +0800 Subject: [PATCH] re-fix wrong parameter for xcb Signed-off-by: Yuhang Zhao <2546789017@qq.com> --- src/core/utils_linux.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/utils_linux.cpp b/src/core/utils_linux.cpp index d7bae28..993273a 100644 --- a/src/core/utils_linux.cpp +++ b/src/core/utils_linux.cpp @@ -270,7 +270,7 @@ static inline void xev.event_x = localPos.x(); xev.event_y = localPos.y(); xev.same_screen = true; - xcb_send_event(connection, false, rootWindow, _NET_WM_SENDEVENT_MASK, + xcb_send_event(connection, false, rootWindow, XCB_EVENT_MASK_STRUCTURE_NOTIFY, reinterpret_cast(&xev)); xcb_flush(connection); }