wayland: Replace make_toplevel / window_unmanaging with set_window

The make_toplevel / window_unmanaging interface has never made
a lot of sense to me. Replace it with set_window, which does
effectively the same thing.

It's still not perfect in the case of XWayland, but I don't think
XWayland will ever make me happy.
This commit is contained in:
Jasper St. Pierre
2014-04-02 10:37:08 -04:00
parent e4cd000cef
commit 3c404c5db3
4 changed files with 24 additions and 26 deletions

View File

@ -1468,7 +1468,7 @@ meta_window_unmanage (MetaWindow *window,
/* This needs to happen for both Wayland and XWayland clients,
* so it can't be in MetaWindowWayland. */
if (window->surface)
meta_wayland_surface_window_unmanaged (window->surface);
meta_wayland_surface_set_window (window->surface, NULL);
if (window->visible_to_compositor)
{