forked from mirror/dwl
fix compiler error with gcc complaining about parentheses
dwl.c: In function ‘unmaplayersurface’: dwl.c:2253:9: error: suggest parentheses around assignment used as truth value [-Werror=parentheses] 2253 | layersurface->layer_surface->mapped = layersurface->mapped = 0; | ^~~~~~~~~~~~ cc1: all warnings being treated as errors make: *** [<builtin>: dwl.o] Error 1 clang not affected
This commit is contained in:
parent
b91017e713
commit
4dfa45659a
1 changed files with 1 additions and 1 deletions
2
dwl.c
2
dwl.c
|
@ -2250,7 +2250,7 @@ toggleview(const Arg *arg)
|
||||||
void
|
void
|
||||||
unmaplayersurface(LayerSurface *layersurface)
|
unmaplayersurface(LayerSurface *layersurface)
|
||||||
{
|
{
|
||||||
layersurface->layer_surface->mapped = layersurface->mapped = 0;
|
layersurface->layer_surface->mapped = (layersurface->mapped = 0);
|
||||||
wlr_scene_node_set_enabled(layersurface->scene, 0);
|
wlr_scene_node_set_enabled(layersurface->scene, 0);
|
||||||
if (layersurface->layer_surface->surface ==
|
if (layersurface->layer_surface->surface ==
|
||||||
seat->keyboard_state.focused_surface)
|
seat->keyboard_state.focused_surface)
|
||||||
|
|
Loading…
Reference in a new issue