mirror of
https://codeberg.org/FabricSoul/dwl.git
synced 2025-08-03 20:10:23 -04:00
set monitor for clients that don't have one in updatemons()
only if selmon is enabled and the clients are mapped
This commit is contained in:
parent
174919ec53
commit
07bf1832bf
2 changed files with 16 additions and 0 deletions
10
client.h
10
client.h
|
@ -183,6 +183,16 @@ client_is_float_type(Client *c)
|
|||
|| c->surface.xdg->toplevel->parent;
|
||||
}
|
||||
|
||||
static inline int
|
||||
client_is_mapped(Client *c)
|
||||
{
|
||||
#ifdef XWAYLAND
|
||||
if (client_is_x11(c))
|
||||
return c->surface.xwayland->mapped;
|
||||
#endif
|
||||
return c->surface.xdg->mapped;
|
||||
}
|
||||
|
||||
static inline int
|
||||
client_wants_fullscreen(Client *c)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue