Draft: wayland: Add support for xdg-session-v1
This change uses slightly modified version of the upstream protocol proposal:
- clients are responsible for picking toplevel ids
-
add_toplevelandrestore_toplevelwere merged in a single request to simplify the compositor side implementation and cut down the amount of corner cases, e.g. callingadd_toplevelmultiple times for the same toplevel, etc - the surface arg has been removed in
xdg_toplevel_session_v1.restoredas it's redundant
some notes:
- it makes sense to move
xdg_session_v1.remove_topleveltoxdg_toplevel_session_v1.removein order to be consistent withxdg_session_manager_v1.get_sessionandxdg_session_v1.remove
Draft:
- use
KSharedDataCacheor something like that for session storage - get the upstream protocol merged
https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/18
closes #113 (closed)
Edited by Vlad Zahorodnii