mirror of
https://codeberg.org/FabricSoul/dwl.git
synced 2025-08-03 20:10:23 -04:00
move ugglyness to client.h
This commit is contained in:
parent
2ef5abfb72
commit
4ae6d0f387
2 changed files with 12 additions and 9 deletions
11
client.h
11
client.h
|
@ -231,6 +231,17 @@ client_min_size(Client *c, int *width, int *height)
|
|||
*height = state->min_height;
|
||||
}
|
||||
|
||||
static inline void
|
||||
client_restack_surface(Client *c)
|
||||
{
|
||||
#ifdef XWAYLAND
|
||||
if (client_is_x11(c))
|
||||
wlr_xwayland_surface_restack(c->surface.xwayland, NULL,
|
||||
XCB_STACK_MODE_ABOVE);
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
|
||||
static inline Client *
|
||||
client_from_wlr_surface(struct wlr_surface *s)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue