mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-07 13:29:59 -05:00
opt: both set maximized and tile state to client
This commit is contained in:
parent
bc9575068c
commit
b420b854af
1 changed files with 3 additions and 3 deletions
|
|
@ -356,11 +356,11 @@ static inline void client_set_tiled(Client *c, uint32_t edges) {
|
||||||
if (wl_resource_get_version(c->surface.xdg->toplevel->resource) >=
|
if (wl_resource_get_version(c->surface.xdg->toplevel->resource) >=
|
||||||
XDG_TOPLEVEL_STATE_TILED_RIGHT_SINCE_VERSION) {
|
XDG_TOPLEVEL_STATE_TILED_RIGHT_SINCE_VERSION) {
|
||||||
wlr_xdg_toplevel_set_tiled(c->surface.xdg->toplevel, edges);
|
wlr_xdg_toplevel_set_tiled(c->surface.xdg->toplevel, edges);
|
||||||
} else {
|
}
|
||||||
|
|
||||||
wlr_xdg_toplevel_set_maximized(c->surface.xdg->toplevel,
|
wlr_xdg_toplevel_set_maximized(c->surface.xdg->toplevel,
|
||||||
edges != WLR_EDGE_NONE);
|
edges != WLR_EDGE_NONE);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
static inline void client_set_suspended(Client *c, int suspended) {
|
static inline void client_set_suspended(Client *c, int suspended) {
|
||||||
#ifdef XWAYLAND
|
#ifdef XWAYLAND
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue