mirror of
https://codeberg.org/FabricSoul/dwl.git
synced 2025-08-04 04:20:24 -04:00
factor xwayland hackiness out into client.h
This commit is contained in:
parent
56d93898ea
commit
06ca860092
2 changed files with 12 additions and 10 deletions
11
client.h
11
client.h
|
@ -141,6 +141,17 @@ client_set_size(Client *c, uint32_t width, uint32_t height)
|
|||
return wlr_xdg_toplevel_set_size(c->surface.xdg, width, height);
|
||||
}
|
||||
|
||||
static inline void
|
||||
client_set_tiled(Client *c, uint32_t edges)
|
||||
{
|
||||
#ifdef XWAYLAND
|
||||
if (client_is_x11(c))
|
||||
return;
|
||||
#endif
|
||||
wlr_xdg_toplevel_set_tiled(c->surface.xdg, WLR_EDGE_TOP |
|
||||
WLR_EDGE_BOTTOM | WLR_EDGE_LEFT | WLR_EDGE_RIGHT);
|
||||
}
|
||||
|
||||
static inline struct wlr_surface *
|
||||
client_surface(Client *c)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue