2017-12-20 04:40:22 -05:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2012,2013 Intel Corporation
|
|
|
|
* Copyright (C) 2013-2017 Red Hat, 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.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#include "wayland/meta-wayland-actor-surface.h"
|
|
|
|
|
2017-12-22 01:28:28 -05:00
|
|
|
#include "backends/meta-backend-private.h"
|
|
|
|
#include "backends/meta-logical-monitor.h"
|
2017-12-20 04:40:22 -05:00
|
|
|
#include "compositor/meta-surface-actor-wayland.h"
|
2019-06-30 09:18:46 -04:00
|
|
|
#include "compositor/meta-window-actor-wayland.h"
|
2017-12-22 01:28:28 -05:00
|
|
|
#include "compositor/region-utils.h"
|
2017-12-20 04:40:22 -05:00
|
|
|
#include "wayland/meta-wayland-surface.h"
|
2017-12-22 01:28:28 -05:00
|
|
|
#include "wayland/meta-window-wayland.h"
|
2017-12-20 04:40:22 -05:00
|
|
|
|
2018-04-06 07:27:52 -04:00
|
|
|
typedef struct _MetaWaylandActorSurfacePrivate MetaWaylandActorSurfacePrivate;
|
|
|
|
|
|
|
|
struct _MetaWaylandActorSurfacePrivate
|
|
|
|
{
|
|
|
|
MetaSurfaceActor *actor;
|
2019-10-03 15:44:34 -04:00
|
|
|
|
|
|
|
gulong actor_destroyed_handler_id;
|
2019-10-28 13:20:31 -04:00
|
|
|
|
|
|
|
struct wl_list frame_callback_list;
|
2018-04-06 07:27:52 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE (MetaWaylandActorSurface,
|
|
|
|
meta_wayland_actor_surface,
|
|
|
|
META_TYPE_WAYLAND_SURFACE_ROLE)
|
|
|
|
|
|
|
|
static void
|
|
|
|
meta_wayland_actor_surface_constructed (GObject *object)
|
|
|
|
{
|
|
|
|
G_OBJECT_CLASS (meta_wayland_actor_surface_parent_class)->constructed (object);
|
|
|
|
|
|
|
|
meta_wayland_actor_surface_reset_actor (META_WAYLAND_ACTOR_SURFACE (object));
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2019-10-03 15:41:48 -04:00
|
|
|
clear_surface_actor (MetaWaylandActorSurface *actor_surface)
|
2018-04-06 07:27:52 -04:00
|
|
|
{
|
|
|
|
MetaWaylandActorSurfacePrivate *priv =
|
2019-10-03 15:41:48 -04:00
|
|
|
meta_wayland_actor_surface_get_instance_private (actor_surface);
|
|
|
|
MetaWaylandSurfaceRole *surface_role =
|
|
|
|
META_WAYLAND_SURFACE_ROLE (actor_surface);
|
2018-04-06 07:27:52 -04:00
|
|
|
MetaWaylandSurface *surface =
|
2019-10-03 15:41:48 -04:00
|
|
|
meta_wayland_surface_role_get_surface (surface_role);
|
|
|
|
|
2019-10-03 15:44:34 -04:00
|
|
|
if (!priv->actor)
|
|
|
|
return;
|
|
|
|
|
|
|
|
g_clear_signal_handler (&priv->actor_destroyed_handler_id, priv->actor);
|
2019-10-03 15:41:48 -04:00
|
|
|
g_signal_handlers_disconnect_by_func (priv->actor,
|
|
|
|
meta_wayland_surface_notify_geometry_changed,
|
|
|
|
surface);
|
|
|
|
g_clear_object (&priv->actor);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
meta_wayland_actor_surface_dispose (GObject *object)
|
|
|
|
{
|
|
|
|
MetaWaylandActorSurface *actor_surface = META_WAYLAND_ACTOR_SURFACE (object);
|
|
|
|
MetaWaylandActorSurfacePrivate *priv =
|
|
|
|
meta_wayland_actor_surface_get_instance_private (actor_surface);
|
2019-10-28 13:20:31 -04:00
|
|
|
MetaWaylandFrameCallback *cb, *next;
|
2018-04-06 07:27:52 -04:00
|
|
|
|
2018-06-14 06:38:27 -04:00
|
|
|
if (priv->actor)
|
|
|
|
{
|
|
|
|
clutter_actor_set_reactive (CLUTTER_ACTOR (priv->actor), FALSE);
|
2019-10-03 15:41:48 -04:00
|
|
|
clear_surface_actor (actor_surface);
|
2018-06-14 06:38:27 -04:00
|
|
|
}
|
2018-04-06 07:27:52 -04:00
|
|
|
|
2019-10-28 13:20:31 -04:00
|
|
|
wl_list_for_each_safe (cb, next, &priv->frame_callback_list, link)
|
|
|
|
wl_resource_destroy (cb->resource);
|
|
|
|
|
2018-06-14 06:38:27 -04:00
|
|
|
G_OBJECT_CLASS (meta_wayland_actor_surface_parent_class)->dispose (object);
|
2018-04-06 07:27:52 -04:00
|
|
|
}
|
2017-12-20 04:40:22 -05:00
|
|
|
|
|
|
|
static void
|
|
|
|
meta_wayland_actor_surface_assigned (MetaWaylandSurfaceRole *surface_role)
|
|
|
|
{
|
2018-04-06 07:27:52 -04:00
|
|
|
MetaWaylandActorSurfacePrivate *priv =
|
|
|
|
meta_wayland_actor_surface_get_instance_private (META_WAYLAND_ACTOR_SURFACE (surface_role));
|
2017-12-20 04:40:22 -05:00
|
|
|
MetaWaylandSurface *surface =
|
|
|
|
meta_wayland_surface_role_get_surface (surface_role);
|
|
|
|
|
2018-04-06 07:27:52 -04:00
|
|
|
meta_surface_actor_wayland_add_frame_callbacks (META_SURFACE_ACTOR_WAYLAND (priv->actor),
|
2017-12-20 04:40:22 -05:00
|
|
|
&surface->pending_frame_callback_list);
|
|
|
|
wl_list_init (&surface->pending_frame_callback_list);
|
|
|
|
}
|
|
|
|
|
2018-07-25 05:49:36 -04:00
|
|
|
void
|
|
|
|
meta_wayland_actor_surface_queue_frame_callbacks (MetaWaylandActorSurface *actor_surface,
|
|
|
|
MetaWaylandPendingState *pending)
|
2017-12-20 04:40:22 -05:00
|
|
|
{
|
2018-07-25 05:49:36 -04:00
|
|
|
MetaWaylandActorSurfacePrivate *priv =
|
|
|
|
meta_wayland_actor_surface_get_instance_private (actor_surface);
|
|
|
|
MetaSurfaceActorWayland *surface_actor_wayland =
|
|
|
|
META_SURFACE_ACTOR_WAYLAND (priv->actor);
|
|
|
|
|
2019-10-03 15:44:34 -04:00
|
|
|
if (!priv->actor)
|
|
|
|
return;
|
|
|
|
|
2019-10-28 13:20:31 -04:00
|
|
|
meta_surface_actor_wayland_add_frame_callbacks (surface_actor_wayland,
|
|
|
|
&priv->frame_callback_list);
|
|
|
|
wl_list_init (&priv->frame_callback_list);
|
2018-07-25 05:49:36 -04:00
|
|
|
meta_surface_actor_wayland_add_frame_callbacks (surface_actor_wayland,
|
2017-12-20 04:40:22 -05:00
|
|
|
&pending->frame_callback_list);
|
|
|
|
wl_list_init (&pending->frame_callback_list);
|
|
|
|
}
|
|
|
|
|
2019-07-09 11:29:37 -04:00
|
|
|
double
|
2018-08-22 10:22:58 -04:00
|
|
|
meta_wayland_actor_surface_get_geometry_scale (MetaWaylandActorSurface *actor_surface)
|
2017-12-22 01:28:28 -05:00
|
|
|
{
|
2019-09-06 09:13:24 -04:00
|
|
|
MetaWaylandActorSurfaceClass *actor_surface_class =
|
|
|
|
META_WAYLAND_ACTOR_SURFACE_GET_CLASS (actor_surface);
|
2017-12-22 01:28:28 -05:00
|
|
|
|
2019-09-06 09:13:24 -04:00
|
|
|
return actor_surface_class->get_geometry_scale (actor_surface);
|
2018-08-22 10:22:58 -04:00
|
|
|
}
|
|
|
|
|
2017-12-22 01:28:28 -05:00
|
|
|
static void
|
|
|
|
meta_wayland_actor_surface_real_sync_actor_state (MetaWaylandActorSurface *actor_surface)
|
|
|
|
{
|
2018-04-06 07:27:52 -04:00
|
|
|
MetaWaylandActorSurfacePrivate *priv =
|
|
|
|
meta_wayland_actor_surface_get_instance_private (actor_surface);
|
2017-12-22 01:28:28 -05:00
|
|
|
MetaWaylandSurfaceRole *surface_role =
|
|
|
|
META_WAYLAND_SURFACE_ROLE (actor_surface);
|
|
|
|
MetaWaylandSurface *surface =
|
|
|
|
meta_wayland_surface_role_get_surface (surface_role);
|
|
|
|
MetaSurfaceActor *surface_actor;
|
|
|
|
MetaShapedTexture *stex;
|
2019-06-30 09:18:46 -04:00
|
|
|
GNode *n;
|
2018-07-02 06:22:30 -04:00
|
|
|
cairo_rectangle_int_t surface_rect;
|
2018-08-22 10:22:58 -04:00
|
|
|
int geometry_scale;
|
2017-12-22 01:28:28 -05:00
|
|
|
|
2018-04-06 07:27:52 -04:00
|
|
|
surface_actor = priv->actor;
|
2017-12-22 01:28:28 -05:00
|
|
|
stex = meta_surface_actor_get_texture (surface_actor);
|
2018-12-26 10:41:26 -05:00
|
|
|
meta_shaped_texture_set_buffer_scale (stex, surface->scale);
|
2017-12-22 01:28:28 -05:00
|
|
|
|
2018-08-22 10:22:58 -04:00
|
|
|
/* Wayland surface coordinate space -> stage coordinate space */
|
|
|
|
geometry_scale = meta_wayland_actor_surface_get_geometry_scale (actor_surface);
|
2018-07-02 06:22:30 -04:00
|
|
|
surface_rect = (cairo_rectangle_int_t) {
|
2018-08-22 10:22:58 -04:00
|
|
|
.width = meta_wayland_surface_get_width (surface) * geometry_scale,
|
|
|
|
.height = meta_wayland_surface_get_height (surface) * geometry_scale,
|
2018-07-02 06:22:30 -04:00
|
|
|
};
|
|
|
|
|
2017-12-22 01:28:28 -05:00
|
|
|
if (surface->input_region)
|
|
|
|
{
|
2019-07-12 12:56:14 -04:00
|
|
|
cairo_region_t *input_region;
|
2017-12-22 01:28:28 -05:00
|
|
|
|
2019-07-12 12:56:14 -04:00
|
|
|
input_region = cairo_region_copy (surface->input_region);
|
|
|
|
cairo_region_intersect_rectangle (input_region, &surface_rect);
|
|
|
|
meta_surface_actor_set_input_region (surface_actor, input_region);
|
|
|
|
cairo_region_destroy (input_region);
|
2017-12-22 01:28:28 -05:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
meta_surface_actor_set_input_region (surface_actor, NULL);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (surface->opaque_region)
|
|
|
|
{
|
2019-07-12 12:56:14 -04:00
|
|
|
cairo_region_t *opaque_region;
|
|
|
|
|
|
|
|
opaque_region = cairo_region_copy (surface->opaque_region);
|
|
|
|
cairo_region_intersect_rectangle (opaque_region, &surface_rect);
|
|
|
|
meta_surface_actor_set_opaque_region (surface_actor, opaque_region);
|
|
|
|
cairo_region_destroy (opaque_region);
|
2017-12-22 01:28:28 -05:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
meta_surface_actor_set_opaque_region (surface_actor, NULL);
|
|
|
|
}
|
|
|
|
|
2018-11-26 13:40:57 -05:00
|
|
|
meta_surface_actor_set_transform (surface_actor, surface->buffer_transform);
|
|
|
|
|
2018-11-24 14:25:38 -05:00
|
|
|
if (surface->viewport.has_src_rect)
|
|
|
|
{
|
|
|
|
meta_surface_actor_set_viewport_src_rect (surface_actor,
|
|
|
|
&surface->viewport.src_rect);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
meta_surface_actor_reset_viewport_src_rect (surface_actor);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (surface->viewport.has_dst_size)
|
|
|
|
{
|
|
|
|
meta_surface_actor_set_viewport_dst_size (surface_actor,
|
|
|
|
surface->viewport.dst_width,
|
|
|
|
surface->viewport.dst_height);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
meta_surface_actor_reset_viewport_dst_size (surface_actor);
|
|
|
|
}
|
|
|
|
|
2019-06-30 09:18:46 -04:00
|
|
|
for (n = g_node_first_child (surface->subsurface_branch_node);
|
|
|
|
n;
|
|
|
|
n = g_node_next_sibling (n))
|
2017-12-22 01:28:28 -05:00
|
|
|
{
|
2019-06-30 09:18:46 -04:00
|
|
|
MetaWaylandSurface *subsurface_surface = n->data;
|
|
|
|
MetaWaylandActorSurface *subsurface_actor_surface;
|
|
|
|
|
|
|
|
if (G_NODE_IS_LEAF (n))
|
|
|
|
continue;
|
2017-12-22 01:28:28 -05:00
|
|
|
|
2019-06-30 09:18:46 -04:00
|
|
|
subsurface_actor_surface =
|
|
|
|
META_WAYLAND_ACTOR_SURFACE (subsurface_surface->role);
|
2017-12-22 01:28:28 -05:00
|
|
|
meta_wayland_actor_surface_sync_actor_state (subsurface_actor_surface);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
meta_wayland_actor_surface_sync_actor_state (MetaWaylandActorSurface *actor_surface)
|
|
|
|
{
|
|
|
|
MetaWaylandActorSurfaceClass *actor_surface_class =
|
|
|
|
META_WAYLAND_ACTOR_SURFACE_GET_CLASS (actor_surface);
|
|
|
|
|
|
|
|
actor_surface_class->sync_actor_state (actor_surface);
|
|
|
|
}
|
|
|
|
|
2017-12-20 04:40:22 -05:00
|
|
|
static void
|
|
|
|
meta_wayland_actor_surface_commit (MetaWaylandSurfaceRole *surface_role,
|
|
|
|
MetaWaylandPendingState *pending)
|
|
|
|
{
|
2017-12-22 01:28:28 -05:00
|
|
|
MetaWaylandActorSurface *actor_surface =
|
|
|
|
META_WAYLAND_ACTOR_SURFACE (surface_role);
|
2019-10-03 15:44:34 -04:00
|
|
|
MetaWaylandActorSurfacePrivate *priv =
|
|
|
|
meta_wayland_actor_surface_get_instance_private (actor_surface);
|
|
|
|
|
|
|
|
if (!priv->actor)
|
2019-10-28 13:20:31 -04:00
|
|
|
{
|
|
|
|
wl_list_insert_list (&priv->frame_callback_list,
|
|
|
|
&pending->frame_callback_list);
|
|
|
|
wl_list_init (&pending->frame_callback_list);
|
|
|
|
return;
|
|
|
|
}
|
2017-12-20 04:40:22 -05:00
|
|
|
|
2019-10-09 15:53:09 -04:00
|
|
|
if (!wl_list_empty (&pending->frame_callback_list) &&
|
|
|
|
cairo_region_is_empty (pending->surface_damage) &&
|
|
|
|
cairo_region_is_empty (pending->buffer_damage))
|
|
|
|
clutter_actor_queue_redraw (CLUTTER_ACTOR (priv->actor));
|
|
|
|
|
2018-07-25 05:49:36 -04:00
|
|
|
meta_wayland_actor_surface_queue_frame_callbacks (actor_surface, pending);
|
2017-12-20 04:40:22 -05:00
|
|
|
|
2017-12-22 01:28:28 -05:00
|
|
|
meta_wayland_actor_surface_sync_actor_state (actor_surface);
|
2017-12-20 04:40:22 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
static gboolean
|
|
|
|
meta_wayland_actor_surface_is_on_logical_monitor (MetaWaylandSurfaceRole *surface_role,
|
|
|
|
MetaLogicalMonitor *logical_monitor)
|
|
|
|
{
|
2018-04-06 07:27:52 -04:00
|
|
|
MetaWaylandActorSurfacePrivate *priv =
|
|
|
|
meta_wayland_actor_surface_get_instance_private (META_WAYLAND_ACTOR_SURFACE (surface_role));
|
|
|
|
ClutterActor *actor = CLUTTER_ACTOR (priv->actor);
|
2017-12-22 01:28:28 -05:00
|
|
|
float x, y, width, height;
|
|
|
|
cairo_rectangle_int_t actor_rect;
|
|
|
|
cairo_region_t *region;
|
|
|
|
MetaRectangle logical_monitor_layout;
|
|
|
|
gboolean is_on_monitor;
|
|
|
|
|
|
|
|
clutter_actor_get_transformed_position (actor, &x, &y);
|
|
|
|
clutter_actor_get_transformed_size (actor, &width, &height);
|
|
|
|
|
|
|
|
actor_rect.x = (int) roundf (x);
|
|
|
|
actor_rect.y = (int) roundf (y);
|
|
|
|
actor_rect.width = (int) roundf (x + width) - actor_rect.x;
|
|
|
|
actor_rect.height = (int) roundf (y + height) - actor_rect.y;
|
|
|
|
|
|
|
|
/* Calculate the scaled surface actor region. */
|
|
|
|
region = cairo_region_create_rectangle (&actor_rect);
|
|
|
|
|
|
|
|
logical_monitor_layout = meta_logical_monitor_get_layout (logical_monitor);
|
|
|
|
|
|
|
|
cairo_region_intersect_rectangle (region,
|
|
|
|
&((cairo_rectangle_int_t) {
|
|
|
|
.x = logical_monitor_layout.x,
|
|
|
|
.y = logical_monitor_layout.y,
|
|
|
|
.width = logical_monitor_layout.width,
|
|
|
|
.height = logical_monitor_layout.height,
|
|
|
|
}));
|
|
|
|
|
|
|
|
is_on_monitor = !cairo_region_is_empty (region);
|
|
|
|
cairo_region_destroy (region);
|
|
|
|
|
|
|
|
return is_on_monitor;
|
2017-12-20 04:40:22 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2019-10-28 13:20:31 -04:00
|
|
|
meta_wayland_actor_surface_init (MetaWaylandActorSurface *actor_surface)
|
2017-12-20 04:40:22 -05:00
|
|
|
{
|
2019-10-28 13:20:31 -04:00
|
|
|
MetaWaylandActorSurfacePrivate *priv =
|
|
|
|
meta_wayland_actor_surface_get_instance_private (actor_surface);
|
|
|
|
|
|
|
|
wl_list_init (&priv->frame_callback_list);
|
2017-12-20 04:40:22 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
meta_wayland_actor_surface_class_init (MetaWaylandActorSurfaceClass *klass)
|
|
|
|
{
|
|
|
|
MetaWaylandSurfaceRoleClass *surface_role_class =
|
|
|
|
META_WAYLAND_SURFACE_ROLE_CLASS (klass);
|
2018-04-06 07:27:52 -04:00
|
|
|
GObjectClass *object_class = G_OBJECT_CLASS (klass);
|
|
|
|
|
|
|
|
object_class->constructed = meta_wayland_actor_surface_constructed;
|
2018-06-14 06:38:27 -04:00
|
|
|
object_class->dispose = meta_wayland_actor_surface_dispose;
|
2017-12-20 04:40:22 -05:00
|
|
|
|
|
|
|
surface_role_class->assigned = meta_wayland_actor_surface_assigned;
|
|
|
|
surface_role_class->commit = meta_wayland_actor_surface_commit;
|
|
|
|
surface_role_class->is_on_logical_monitor =
|
|
|
|
meta_wayland_actor_surface_is_on_logical_monitor;
|
2017-12-22 01:28:28 -05:00
|
|
|
|
|
|
|
klass->sync_actor_state = meta_wayland_actor_surface_real_sync_actor_state;
|
2017-12-20 04:40:22 -05:00
|
|
|
}
|
2018-04-06 07:27:52 -04:00
|
|
|
|
|
|
|
MetaSurfaceActor *
|
|
|
|
meta_wayland_actor_surface_get_actor (MetaWaylandActorSurface *actor_surface)
|
|
|
|
{
|
|
|
|
MetaWaylandActorSurfacePrivate *priv =
|
|
|
|
meta_wayland_actor_surface_get_instance_private (actor_surface);
|
|
|
|
|
|
|
|
return priv->actor;
|
|
|
|
}
|
|
|
|
|
2019-10-03 15:44:34 -04:00
|
|
|
static void
|
|
|
|
on_actor_destroyed (ClutterActor *actor,
|
|
|
|
MetaWaylandActorSurface *actor_surface)
|
|
|
|
{
|
|
|
|
clear_surface_actor (actor_surface);
|
|
|
|
}
|
|
|
|
|
2018-04-06 07:27:52 -04:00
|
|
|
void
|
|
|
|
meta_wayland_actor_surface_reset_actor (MetaWaylandActorSurface *actor_surface)
|
|
|
|
{
|
|
|
|
MetaWaylandActorSurfacePrivate *priv =
|
|
|
|
meta_wayland_actor_surface_get_instance_private (actor_surface);
|
|
|
|
MetaWaylandSurface *surface =
|
|
|
|
meta_wayland_surface_role_get_surface (META_WAYLAND_SURFACE_ROLE (actor_surface));
|
|
|
|
|
2019-10-03 15:41:48 -04:00
|
|
|
clear_surface_actor (actor_surface);
|
2018-04-06 07:27:52 -04:00
|
|
|
|
|
|
|
priv->actor = g_object_ref_sink (meta_surface_actor_wayland_new (surface));
|
2019-10-03 15:44:34 -04:00
|
|
|
priv->actor_destroyed_handler_id =
|
|
|
|
g_signal_connect (priv->actor, "destroy",
|
|
|
|
G_CALLBACK (on_actor_destroyed),
|
2019-10-04 07:45:51 -04:00
|
|
|
actor_surface);
|
2018-04-06 07:27:52 -04:00
|
|
|
|
|
|
|
g_signal_connect_swapped (priv->actor, "notify::allocation",
|
|
|
|
G_CALLBACK (meta_wayland_surface_notify_geometry_changed),
|
|
|
|
surface);
|
|
|
|
g_signal_connect_swapped (priv->actor, "notify::position",
|
|
|
|
G_CALLBACK (meta_wayland_surface_notify_geometry_changed),
|
|
|
|
surface);
|
|
|
|
g_signal_connect_swapped (priv->actor, "notify::mapped",
|
|
|
|
G_CALLBACK (meta_wayland_surface_notify_geometry_changed),
|
|
|
|
surface);
|
|
|
|
}
|