Open afrantzis opened 1 year ago
I don't think you can ACK the initial configure then commit without attaching a buffer.
The second bug does sound separate, please file a new issue.
I don't think you can ACK the initial configure then commit without attaching a buffer.
I can't find anything in the spec that disallow this, but perhaps I missed something? FWIW, I now tried this sequence without ACKing the configure (so 1. initial commit 2. on configure: no ack, set_fullscreen and commit again), but I am still seeing the same issue.
The second bug does sound separate, please file a new issue.
I can't find anything in the spec that disallow this
https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/188
I can't find anything in the spec that disallow this
https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/188
As mentioned above, even if we remove the ACK, the issue still stands. Do you think that the following is an acceptable/in-spec sequence? :
# We receive the initial configure
[2867510.230] xdg_toplevel@8.configure(0, 0, array[0])
[2867510.236] xdg_surface@7.configure(13)
# We send a fullscreen request, but sway never sends back a configure event
[2867510.246] -> xdg_toplevel@8.set_fullscreen(nil)
[2867510.251] -> wl_surface@3.commit()
This can be tested with weston-simple-shm from https://gitlab.freedesktop.org/afrantzis/weston/-/commits/simple-shm-fullscreen-no-ack.
Please fill out the following:
Sway Version: 1.8
Debug Log: sway log + WAYLAND_DEBUG=1 : https://gist.github.com/afrantzis/c9dfd671f8b7854653eadc0b618d266e
Configuration File: default
Description:
Sway 1.8/wlroots 0.16 does not reply to xdg_toplevel.set_fullscreen requests sent while the xdg_toplevel is not mapped (unless it was just created, in which case it eventually does reply). The scenario can be exhibited by running weston-simple-shm changed as in https://gitlab.freedesktop.org/afrantzis/weston/-/commits/simple-shm-fullscreen to request fullscreen when the first configure event arrives (without attaching any buffers):
A similar variation where we skip the ACK can be found at: https://gitlab.freedesktop.org/afrantzis/weston/-/commits/simple-shm-fullscreen-no-ack
This is an issue that also affects Wine Wayland which ends up with similar request patterns.
My understanding of the spec is that there is no requirement for an xdg_toplevel to be mapped to handle such requests.
It may be that this issue is a manifestation of bigger problem, since I noticed that the following scenario is also broken (using the updated weston-simple-shm from https://gitlab.freedesktop.org/afrantzis/weston/-/commits/simple-shm-reconfigure):
I am happy to file a separate issue for this one if people think it has a different root cause.
FWIW, weston/kwin/mutter are happy with these request sequences.