Commit d3eb9c3
committed
wayland: fix --no-overlap meaning and behavior
As I understand "no overlap", it means "do not overlap". This
correspond to this call from the Wayland backend:
zwlr_layer_surface_v1_set_exclusive_zone(..., overlap ? -1 : 0);
The spec says:
> If set to zero, the surface indicates that it would like to be moved
> to avoid occluding surfaces with a positive exclusive zone. If set to
> -1, the surface indicates that it would not like to be moved to
> accommodate for other surfaces, and the compositor should extend it
> all the way to the edges it is anchored to.
So "0" is "do not overlap", and "-1" is "overlap", okay.
The problem is that the overlap boolean comes from !client->no_overlap.
Meaning that -n => true => !true => false so -n gives 0 "do not overlap"
I think the code is correct, but the description of the argument is
miss-leading.
Also, we initiate the menu->overlap sooner, because the renderer need
this to gather the maximum available geometry correctly. I'm not sure
if this the best way to to so.1 parent c03ea2b commit d3eb9c3
4 files changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
561 | 561 | | |
562 | 562 | | |
563 | 563 | | |
564 | | - | |
| 564 | + | |
565 | 565 | | |
566 | 566 | | |
567 | 567 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
404 | | - | |
| 404 | + | |
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
| 171 | + | |
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| |||
0 commit comments