opt: optimize x11 popup focus ignore

This commit is contained in:
DreamMaoMao 2025-11-07 11:34:12 +08:00
parent 3ea37ddb52
commit 98ad9b5cac
5 changed files with 17 additions and 17 deletions

View file

@ -132,7 +132,7 @@ int focuslast(const Arg *arg) {
wl_list_for_each(c, &fstack, flink) {
if (c->iskilling || c->isminied || c->isunglobal ||
!client_surface(c)->mapped || client_is_unmanaged(c) ||
client_should_ignore_focus_open(c))
client_is_x11_popup(c))
continue;
if (selmon && !selmon->sel) {
@ -1463,7 +1463,7 @@ int toggleoverview(const Arg *arg) {
wl_list_for_each(c, &clients,
link) if (c && c->mon == selmon &&
!client_is_unmanaged(c) &&
!client_should_ignore_focus_open(c) &&
!client_is_x11_popup(c) &&
!c->isminied && !c->isunglobal) {
visible_client_number++;
}
@ -1487,14 +1487,14 @@ int toggleoverview(const Arg *arg) {
if (selmon->isoverview) {
wl_list_for_each(c, &clients, link) {
if (c && c->mon == selmon && !client_is_unmanaged(c) &&
!client_should_ignore_focus_open(c) && !c->isunglobal)
!client_is_x11_popup(c) && !c->isunglobal)
overview_backup(c);
}
} else {
wl_list_for_each(c, &clients, link) {
if (c && c->mon == selmon && !c->iskilling &&
!client_is_unmanaged(c) && !c->isunglobal &&
!client_should_ignore_focus_open(c) &&
!client_is_x11_popup(c) &&
client_surface(c)->mapped)
overview_restore(c, &(Arg){.ui = target});
}