mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-02-20 01:40:18 -05:00
opt: optimize x11 popup focus ignore
This commit is contained in:
parent
5bbe6c5c1a
commit
df46194b5f
5 changed files with 21 additions and 29 deletions
|
|
@ -402,7 +402,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)) {
|
||||
|
|
@ -417,7 +417,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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue