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

@ -404,7 +404,7 @@ static inline void client_set_suspended(Client *c, int suspended) {
wlr_xdg_toplevel_set_suspended(c->surface.xdg->toplevel, suspended);
}
static inline int client_should_ignore_focus_always(Client *c) {
static inline int client_should_ignore_focus(Client *c) {
#ifdef XWAYLAND
if (client_is_x11(c)) {
@ -419,7 +419,7 @@ static inline int client_should_ignore_focus_always(Client *c) {
return 0;
}
static inline int client_should_ignore_focus_open(Client *c) {
static inline int client_is_x11_popup(Client *c) {
#ifdef XWAYLAND
if (client_is_x11(c)) {