Closed alebastr closed 3 years ago
Added a test which failed before your fixand works now. Still need to look at everywhere else we assume true booleans are equal.
IIRC, that was the only place with a real issue. There's a similar code in layer_surface_set_keyboard_interactivity
, but in the worst case it could only trigger extra surface commit.
The code in this file assumes that all true gbooleans are equal. That's not correct and it's acceptable, albeit discouraged, to assign any int value to gboolean. Of course in this case any strict equality checks in this file could fail.
Fixes auto exclusive zone when passing values other than TRUE or FALSE to
gtk_layer_set_anchor
.For reference, this is how waybar code looked before I finally decided to figure out why auto exclusive zone doesn't work.
By opening this pull request, I agree for my modifications to be licensed under whatever licenses are indicated at the start of the files I modified