do not use magical numbers to check edges

the interface is declared stable, which means we could just use 0 anyway
This commit is contained in:
Leonardo Hernández Hernández 2023-11-16 21:17:39 -06:00
parent 6d0ec595d3
commit 0e897608a1
Failed to generate hash of commit

View file

@ -364,7 +364,7 @@ client_set_tiled(Client *c, uint32_t edges)
>= XDG_TOPLEVEL_STATE_TILED_RIGHT_SINCE_VERSION) {
wlr_xdg_toplevel_set_tiled(c->surface.xdg->toplevel, edges);
} else {
wlr_xdg_toplevel_set_maximized(c->surface.xdg->toplevel, edges != 0);
wlr_xdg_toplevel_set_maximized(c->surface.xdg->toplevel, edges != WLR_EDGE_NONE);
}
}