From 0665c952387b816a6acdcded3f57647d23a0217b Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Wed, 12 Feb 2025 11:11:03 +0800 Subject: [PATCH] fix: still foucs to last focus x11 app when click wayland app --- main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.c b/main.c index a811e2e..3b04bd2 100644 --- a/main.c +++ b/main.c @@ -1579,6 +1579,10 @@ buttonpress(struct wl_listener *listener, void *data) { uint32_t mods; Client *c; const Button *b; + + // without this when change focus from x11 app to wayland app + // it will still focus to the last x11 app after click + motionnotify(0, NULL, 0, 0, 0, 0); // IDLE_NOTIFY_ACTIVITY; wlr_idle_notifier_v1_notify_activity(idle_notifier, seat);