mirror of
https://github.com/brl/mutter.git
synced 2025-02-16 21:34:09 +00:00
![Robert Mader](/assets/img/avatar_default.png)
Flatten the subsurface actor tree, making all surface actors children of the window actor. Save the subsurface state in a GNode tree in MetaWaylandSurface, where each surface holds two nodes, one branch, which can be the tree root or be attached to a parent surfaces branch, and a leaf, which is used to save the position relative to child branch nodes. Each time a surface is added or reordered in the tree, unparent all surface actors from the window actor, traverse all leaves of the tree and readd the corresponding surface actors back to the window actor. https://gitlab.gnome.org/GNOME/mutter/merge_requests/664
39 lines
1.4 KiB
C
39 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);
|
|
MetaWindowActor * meta_window_actor_wayland_from_surface (MetaWaylandSurface *surface);
|
|
|
|
#endif /*META_WINDOW_ACTOR_WAYLAND_H */
|