shell: Put xwayland surface at the top of the fullscreen layer
authorKristian Høgsberg <krh@bitplanet.net>
Fri, 6 Dec 2013 06:43:03 +0000 (22:43 -0800)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 6 Dec 2013 06:43:03 +0000 (22:43 -0800)
commit4804a301db937d10349e79521a0871cb97174a2e
tree385dd661c316916f04527f319b72ba8c59a92c7c
parent41fbf6f7fd44df488d349a43742e5620f9430cea
shell: Put xwayland surface at the top of the fullscreen layer

An xwayland surface corresponds to a override-redirect window under X,
which is typically a menu or a popup window.  They typically appear
with a keyboard and mouse grab and by nature of being override-redirect
these window can appear anywhere on screen and in the stack.

We need to resort to heuristics to decide where to place the
override-redirect in our surface stack, and for now we'll just put it on
top of everything.  That's going to be correct for almost all cases of
clicking to open a menu, but we can revisit and refine if we run into
a case that needs better handling.
desktop-shell/shell.c