lirios / aurora-compositor

Framework to write Wayland compositors with Qt
10 stars 1 forks source link

xdg-shell: popups can't have a null parent #9

Closed plfiorini closed 2 years ago

plfiorini commented 2 years ago

WaylandXdgSurface post an error to the client as soon as get_popup is called with a null parent, but this prevents a client from specifying a parent with a different protocol (for example layer-shell).

The XDG_WM_BASE_ERROR_INVALID_POPUP_PARENT error should be posted if the parent is still null by the time the surface is committed, instead.