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:
parent
6d0ec595d3
commit
0e897608a1
1 changed files with 1 additions and 1 deletions
2
client.h
2
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue