summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@proton.me>2023-11-16 21:17:39 -0600
committerLeonardo Hernández Hernández <leohdz172@proton.me>2023-11-17 11:03:31 -0600
commit0e897608a151da10f4ddcd2a528c618e5f60d9cd (patch)
tree267e56761d087cd68916372bc03c128cf2350a0b
parent6d0ec595d3f3ba6977ea117681861713fbc1de5f (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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/client.h b/client.h
index 2ffb92c..0fdd774 100644
--- a/client.h
+++ b/client.h
@@ -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);
}
}