opt: dont let window get pointer focus in overview

This commit is contained in:
DreamMaoMao 2026-05-16 15:13:39 +08:00
parent 4ca7439575
commit 469249b39e
3 changed files with 15 additions and 2 deletions

View file

@ -1000,7 +1000,9 @@ void client_animation_next_tick(Client *c) {
surface =
pointer_c && pointer_c == c ? client_surface(pointer_c) : NULL;
if (surface && pointer_c == selmon->sel) {
// avoid game window force grab pointer in overview mode
if (surface && pointer_c == selmon->sel && !selmon->isoverview) {
wlr_seat_pointer_notify_enter(seat, surface, sx, sy);
}