xdg-shell: document resize with "none" edges

Current compositor behavior here is not terribly consistent:

Both Weston and Mutter ignore resize requests with "none" edges.

wlroots currently kills the client with a protocol error but allowed
compositors using the wlroots library to decide what to do in the past
before this behavior was accidentally changed. Sending a protocol here
is a wlroots bug in my opinion since the none enum variant exists and
the invalid_resize_edge protocol error is only specified to be sent for
values that do not match an enum variant.

KWin seems to treat a resize with "none" edges the same as a move
request, which is quite strange. I would consider this a bug as well.

This patch recommends that compositors ignore resize requests with
"none" edges in the interest of increasing client portability.

Signed-off-by: Isaac Freund <mail@isaacfreund.com>
This commit is contained in:
Isaac Freund 2024-04-29 16:56:04 +02:00
parent 24e612f7d7
commit 52a4aa6fb5
No known key found for this signature in database
GPG key ID: 86DED400DDFD7A11

View file

@ -818,7 +818,8 @@
The compositor may use this information to update the surface position
for example when dragging the top left corner. The compositor may also
use this information to adapt its behavior, e.g. choose an appropriate
cursor image.
cursor image. A value of none must not cause a protocol error but should
be ignored by the compositor.
</description>
<arg name="seat" type="object" interface="wl_seat" summary="the wl_seat of the user event"/>
<arg name="serial" type="uint" summary="the serial of the user event"/>