fix: The x11 window that should not be focused on miss judge

This commit is contained in:
DreamMaoMao
2025-05-13 08:26:44 +08:00
parent 20dddcec2b
commit aec027f7fa
2 changed files with 33 additions and 0 deletions

View File

@@ -3707,6 +3707,10 @@ void focusclient(Client *c, int lift) {
if (c && c->animation.tagouting && !c->animation.tagouting)
return;
if(c && client_is_x11(c) && !client_surface_wants_focus(c)) {
return;
}
/* Raise client in stacking order if requested */
if (c && lift)
wlr_scene_node_raise_to_top(&c->scene->node); // 将视图提升到顶层