aboutsummaryrefslogtreecommitdiff
path: root/xwayland
diff options
context:
space:
mode:
authorJohan Malm <jgm323@gmail.com>2022-11-26 17:18:33 +0000
committerKirill Primak <vyivel@eclair.cafe>2022-11-29 18:01:57 +0000
commit8e80432a72b18a1ddbacdb08ff0c41645578f1ee (patch)
treed79b9ce8002eab9ebca09f029f9b1a8e30319c0e /xwayland
parent32d00984e19b494c1f9fb04d6064777bc42ed943 (diff)
scene/layer_shell_v1.c: set exclusive zone correctly
...when only one edge is anchored. The layer-shell protocol specifies that a positive exclusive-zone value is 'meaningful' if the surface is anchored to either: 1. one edge 2. one edge and both perpendicular edges. For example, if you wish to position a layer-shell client along the top edge and make it exclusive, you should be able to either set anchor=TOP or anchor=TOP|LEFT|RIGHT. It appears that many panels/bars use the latter approach (anchor to an edge and also both perpendicular edges) which is probably why this has not been reported previously. This patch adds support for the first case and thereby makes exclusive zone behaviour consistent with the protocol and also with sway's extant layer-shell implementation.
Diffstat (limited to 'xwayland')
0 files changed, 0 insertions, 0 deletions