mirror of
https://github.com/brl/mutter.git
synced 2025-06-13 16:59:30 +00:00
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:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user