opt: optimize init focus for x11 window

This commit is contained in:
DreamMaoMao
2025-11-14 17:13:26 +08:00
parent 389f417a3b
commit b3578344dc

View File

@@ -1370,7 +1370,8 @@ void applyrules(Client *c) {
int fullscreen_state_backup = c->isfullscreen || client_wants_fullscreen(c); int fullscreen_state_backup = c->isfullscreen || client_wants_fullscreen(c);
setmon(c, mon, newtags, setmon(c, mon, newtags,
!c->isopensilent && !client_should_ignore_focus(c) && !c->isopensilent &&
!(client_is_x11_popup(c) && client_should_ignore_focus(c)) &&
(!c->istagsilent || !newtags || (!c->istagsilent || !newtags ||
newtags & mon->tagset[mon->seltags])); newtags & mon->tagset[mon->seltags]));