xwayland: track visibility of OR children

OR windows with WM_TRANSIENT_FOR have similar semantics to xdg_popup.
We can't handle them in the same path because we have to keep in sync
with the X stack, and popups are rendered above unmanaged surfaces.
This commit is contained in:
novenary 2023-03-02 17:47:59 +02:00
parent 7669241754
commit 5d2888cb67
4 changed files with 31 additions and 3 deletions

View file

@ -171,6 +171,7 @@ struct sway_xwayland_unmanaged {
struct wl_list link;
int lx, ly;
bool visible;
struct wl_listener request_activate;
struct wl_listener request_configure;
@ -181,6 +182,7 @@ struct sway_xwayland_unmanaged {
struct wl_listener unmap;
struct wl_listener destroy;
struct wl_listener override_redirect;
struct wl_listener set_parent;
};
#endif
struct sway_view_child;