5149e1e43a
The shell surface role is the one where subsurfaces may exist, and it has direct relation to the MetaWindowActorWayland which currently has the subsurface stacking logic. Instead of directly finding the window actor when dealing with subsurfaces, notify the parent surface that the subsurface state changed, so that it can outsource the application of this information to the role. For subsurface roles, this simply means forward upward to the parent; for shell surface roles, this means regenerate the surface actor layering. This allows us to move away from accessing the window directly from the surface, which in turn allows us to change the ownership structure of windows. https://gitlab.gnome.org/GNOME/mutter/merge_requests/835
38 lines
1.4 KiB
C
38 lines
1.4 KiB
C
/*
|
|
* Copyright (C) 2018 Endless, Inc.
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License as
|
|
* published by the Free Software Foundation; either version 2 of the
|
|
* License, or (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful, but
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
* 02111-1307, USA.
|
|
*
|
|
* Written by:
|
|
* Georges Basile Stavracas Neto <gbsneto@gnome.org>
|
|
*/
|
|
|
|
#ifndef META_WINDOW_ACTOR_WAYLAND_H
|
|
#define META_WINDOW_ACTOR_WAYLAND_H
|
|
|
|
#include "compositor/meta-window-actor-private.h"
|
|
#include "wayland/meta-wayland-surface.h"
|
|
|
|
#define META_TYPE_WINDOW_ACTOR_WAYLAND (meta_window_actor_wayland_get_type())
|
|
G_DECLARE_FINAL_TYPE (MetaWindowActorWayland,
|
|
meta_window_actor_wayland,
|
|
META, WINDOW_ACTOR_WAYLAND,
|
|
MetaWindowActor)
|
|
|
|
void meta_window_actor_wayland_rebuild_surface_tree (MetaWindowActor *actor);
|
|
|
|
#endif /*META_WINDOW_ACTOR_WAYLAND_H */
|