diff options
author | Leonardo Hernández Hernández <leohdz172@proton.me> | 2023-11-16 21:17:39 -0600 |
---|---|---|
committer | Leonardo Hernández Hernández <leohdz172@proton.me> | 2023-11-17 11:03:31 -0600 |
commit | 0e897608a151da10f4ddcd2a528c618e5f60d9cd (patch) | |
tree | 267e56761d087cd68916372bc03c128cf2350a0b | |
parent | 6d0ec595d3f3ba6977ea117681861713fbc1de5f (diff) |
do not use magical numbers to check edges
the interface is declared stable, which means we could just use 0 anyway
-rw-r--r-- | client.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } } |