opt: not set maximized to new version wayland client

This commit is contained in:
DreamMaoMao 2025-07-26 23:22:34 +08:00
parent d5d007cdb1
commit b0ffb6c059

View file

@ -356,10 +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