[mutter/wip/surface-content: 11/18] window-actor: Remove meta-screen property
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/surface-content: 11/18] window-actor: Remove meta-screen property
- Date: Fri, 6 Dec 2013 22:47:59 +0000 (UTC)
commit 578b5a37f5a474b6cf697846d7ab7f8d9b71e123
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Fri Dec 6 17:18:56 2013 -0500
window-actor: Remove meta-screen property
This can be inferred from the window. Don't allow anybody to set it.
https://bugzilla.gnome.org/show_bug.cgi?id=678989
src/compositor/meta-window-actor.c | 23 ++++-------------------
1 files changed, 4 insertions(+), 19 deletions(-)
---
diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c
index d56851c..8e3b11f 100644
--- a/src/compositor/meta-window-actor.c
+++ b/src/compositor/meta-window-actor.c
@@ -149,7 +149,6 @@ struct _FrameData
enum
{
PROP_META_WINDOW = 1,
- PROP_META_SCREEN,
PROP_NO_SHADOW,
PROP_SHADOW_CLASS
};
@@ -224,15 +223,6 @@ meta_window_actor_class_init (MetaWindowActorClass *klass)
PROP_META_WINDOW,
pspec);
- pspec = g_param_spec_pointer ("meta-screen",
- "MetaScreen",
- "MetaScreen",
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT);
-
- g_object_class_install_property (object_class,
- PROP_META_SCREEN,
- pspec);
-
pspec = g_param_spec_boolean ("no-shadow",
"No shadow",
"Do not add shaddow to this window",
@@ -339,12 +329,14 @@ meta_window_actor_constructed (GObject *object)
{
MetaWindowActor *self = META_WINDOW_ACTOR (object);
MetaWindowActorPrivate *priv = self->priv;
- MetaScreen *screen = priv->screen;
- MetaDisplay *display = meta_screen_get_display (screen);
MetaWindow *window = priv->window;
Window xwindow = meta_window_get_toplevel_xwindow (window);
+ MetaScreen *screen = meta_window_get_screen (window);
+ MetaDisplay *display = meta_screen_get_display (screen);
Display *xdisplay = meta_display_get_xdisplay (display);
+ priv->screen = screen;
+
if (!meta_is_wayland_compositor ())
priv->damage = XDamageCreate (xdisplay, xwindow,
XDamageReportBoundingBox);
@@ -488,9 +480,6 @@ meta_window_actor_set_property (GObject *object,
priv->window = g_value_dup_object (value);
}
break;
- case PROP_META_SCREEN:
- priv->screen = g_value_get_pointer (value);
- break;
case PROP_NO_SHADOW:
{
gboolean newv = g_value_get_boolean (value);
@@ -535,9 +524,6 @@ meta_window_actor_get_property (GObject *object,
case PROP_META_WINDOW:
g_value_set_object (value, priv->window);
break;
- case PROP_META_SCREEN:
- g_value_set_pointer (value, priv->screen);
- break;
case PROP_NO_SHADOW:
g_value_set_boolean (value, priv->no_shadow);
break;
@@ -1573,7 +1559,6 @@ meta_window_actor_new (MetaWindow *window)
self = g_object_new (META_TYPE_WINDOW_ACTOR,
"meta-window", window,
- "meta-screen", screen,
NULL);
priv = self->priv;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]