implement foreign toplevel management
place child clients above fullscreen clients
When a child window of a fullscreen client is mapped, the fullscreen is
disabled, and if the previously fullscreen client is floating the child
window is rendered below it and cannot be seen, causing confusion,
though it is still focused and interactable.
Fix this by putting children of fullscreen clients in LyrFS instead of
LyrFloat, and by returning before the unset_fullscreen code is called
when they are mapped.
focusstack() now lets you switch focus from a fullscreen client to its
child windows, otherwise if you switch focus from the child window to
the fullscreen client you could not focus the child window again and the
fullscreen client would stay unresponsive.
Child clients are not reparented to LyrFloat after leaving fullscreen,
so you could spawn a child window, focus back the fullscreen client,
unfullscreen it, and the child window would still be drawn above other
floating clients. Avoid dealing with this edge case to keep the line
count low.
These cases can be tested by pressing Ctrl+o in applications with an
open file dialog.
make XWayland clients inherit tags and monitors
Revert 3213088 because the linked bug can no longer be reproduced with
wlroots 0.17, and update client_get_parent() so it doesn't segfault with
XWayland surfaces. This also allows reusing the p variable in the next
commit.
check toplevel resources
it's just a aesthetic change
merge X11Managed and X11Unmanaged into X11
now that client_is_unmanaged() checks the wlr struct we don't need to keep
track of it ourselves
check if a client is unmanaged checking the o-r flag
it may change at any moment and I don't really want to add a listener for it
Merge branch 'wlroots-next'
check toplevel resource instead of client's xdg_shell to set bounds
explicitly return -1 in the first check in toplevel_from_wlr_surface
do not use #ifdef -> #else -> #endif in client_is_x11
all other funcions use #ifdef -> #endif
style fixes in client_is_float_type
correctly check if the scene node is enabled in client_is_rendered_on_mon
do not use magical numbers to check edges
the interface is declared stable, which means we could just use 0 anyway
simplify client_get_clip
the clips for xwayland and xdg clients are pretty similar, after all we only
need to adjust x and y for xdg clients