mirror of
https://github.com/brl/mutter.git
synced 2025-03-30 07:03:46 +00:00

Fullscreen Wayland toplevel surfaces don't need to respect the configured size in which case it should be shown centered on the monitor with a black background. The black background becomes part of the window geometry. The surface container is responsible for correctly culling the surfaces and making sure the surface actors are removed from the actor tree to avoid destroying them. The window actor culling implementation assumes all surfaces to be direct children of said actor. The introduction of the surface_container actor broke that assumption. This implements the culling interface in MetaWindowActorWayland which is aware of the actor surface_container and fullscreen state. v2: Fix forwarding culling to surface even if there is a background. v2: Don't alter passed geometry. v2: Update window geometry code documentation to reflect these changes. v2: Only use constrained rect if we're acked fullscreen. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2338>
43 lines
1.6 KiB
C
43 lines
1.6 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"
|
|
|
|
#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)
|
|
|
|
#define META_TYPE_SURFACE_CONTAINER_ACTOR_WAYLAND (meta_surface_container_actor_wayland_get_type())
|
|
G_DECLARE_FINAL_TYPE (MetaSurfaceContainerActorWayland,
|
|
meta_surface_container_actor_wayland,
|
|
META, SURFACE_CONTAINER_ACTOR_WAYLAND,
|
|
ClutterActor)
|
|
|
|
void meta_window_actor_wayland_rebuild_surface_tree (MetaWindowActor *actor);
|
|
|
|
#endif /*META_WINDOW_ACTOR_WAYLAND_H */
|