mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-11 13:29:57 -05:00
fix: still foucs to last focus x11 app when click wayland app
This commit is contained in:
parent
83ab57fe06
commit
0665c95238
1 changed files with 4 additions and 0 deletions
4
main.c
4
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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue