~ruther/dwl

0e897608a151da10f4ddcd2a528c618e5f60d9cd — Leonardo Hernández Hernández 1 year, 6 months ago 6d0ec59
do not use magical numbers to check edges

the interface is declared stable, which means we could just use 0 anyway
1 files changed, 1 insertions(+), 1 deletions(-)

M client.h
M client.h => client.h +1 -1
@@ 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);
	}
}


Do not follow this link