mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-14 06:59:50 -05:00
opt: opt func name
This commit is contained in:
parent
335a8fa2b1
commit
47cf6a1a84
2 changed files with 9 additions and 9 deletions
|
|
@ -363,7 +363,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_surface_wants_focus(Client *c) {
|
||||
static inline int client_should_ignore_focus(Client *c) {
|
||||
|
||||
#ifdef XWAYLAND
|
||||
if (client_is_x11(c)) {
|
||||
|
|
@ -384,12 +384,12 @@ static inline int client_surface_wants_focus(Client *c) {
|
|||
for (size_t i = 0; i < sizeof(no_focus_types) / sizeof(no_focus_types[0]);
|
||||
++i) {
|
||||
if (wlr_xwayland_surface_has_window_type(surface, no_focus_types[i])) {
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline int client_wants_focus(Client *c) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue