mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
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
This commit is contained in:
parent
f8b4c28278
commit
734deeb17c
@ -154,7 +154,6 @@ struct _FrameData
|
|||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
PROP_META_WINDOW = 1,
|
PROP_META_WINDOW = 1,
|
||||||
PROP_META_SCREEN,
|
|
||||||
PROP_NO_SHADOW,
|
PROP_NO_SHADOW,
|
||||||
PROP_SHADOW_CLASS
|
PROP_SHADOW_CLASS
|
||||||
};
|
};
|
||||||
@ -229,15 +228,6 @@ meta_window_actor_class_init (MetaWindowActorClass *klass)
|
|||||||
PROP_META_WINDOW,
|
PROP_META_WINDOW,
|
||||||
pspec);
|
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",
|
pspec = g_param_spec_boolean ("no-shadow",
|
||||||
"No shadow",
|
"No shadow",
|
||||||
"Do not add shaddow to this window",
|
"Do not add shaddow to this window",
|
||||||
@ -336,15 +326,16 @@ meta_window_actor_constructed (GObject *object)
|
|||||||
{
|
{
|
||||||
MetaWindowActor *self = META_WINDOW_ACTOR (object);
|
MetaWindowActor *self = META_WINDOW_ACTOR (object);
|
||||||
MetaWindowActorPrivate *priv = self->priv;
|
MetaWindowActorPrivate *priv = self->priv;
|
||||||
MetaScreen *screen = priv->screen;
|
|
||||||
MetaDisplay *display = meta_screen_get_display (screen);
|
|
||||||
MetaWindow *window = priv->window;
|
MetaWindow *window = priv->window;
|
||||||
|
MetaScreen *screen = meta_window_get_screen (window);
|
||||||
|
MetaDisplay *display = meta_screen_get_display (screen);
|
||||||
Display *xdisplay = meta_display_get_xdisplay (display);
|
Display *xdisplay = meta_display_get_xdisplay (display);
|
||||||
XRenderPictFormat *format;
|
XRenderPictFormat *format;
|
||||||
Window xwindow;
|
Window xwindow;
|
||||||
|
|
||||||
xwindow = meta_window_get_toplevel_xwindow (window);
|
xwindow = meta_window_get_toplevel_xwindow (window);
|
||||||
|
|
||||||
|
priv->screen = screen;
|
||||||
priv->damage = XDamageCreate (xdisplay, xwindow,
|
priv->damage = XDamageCreate (xdisplay, xwindow,
|
||||||
XDamageReportBoundingBox);
|
XDamageReportBoundingBox);
|
||||||
|
|
||||||
@ -470,9 +461,6 @@ meta_window_actor_set_property (GObject *object,
|
|||||||
priv->window = g_value_dup_object (value);
|
priv->window = g_value_dup_object (value);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case PROP_META_SCREEN:
|
|
||||||
priv->screen = g_value_get_pointer (value);
|
|
||||||
break;
|
|
||||||
case PROP_NO_SHADOW:
|
case PROP_NO_SHADOW:
|
||||||
{
|
{
|
||||||
gboolean newv = g_value_get_boolean (value);
|
gboolean newv = g_value_get_boolean (value);
|
||||||
@ -517,9 +505,6 @@ meta_window_actor_get_property (GObject *object,
|
|||||||
case PROP_META_WINDOW:
|
case PROP_META_WINDOW:
|
||||||
g_value_set_object (value, priv->window);
|
g_value_set_object (value, priv->window);
|
||||||
break;
|
break;
|
||||||
case PROP_META_SCREEN:
|
|
||||||
g_value_set_pointer (value, priv->screen);
|
|
||||||
break;
|
|
||||||
case PROP_NO_SHADOW:
|
case PROP_NO_SHADOW:
|
||||||
g_value_set_boolean (value, priv->no_shadow);
|
g_value_set_boolean (value, priv->no_shadow);
|
||||||
break;
|
break;
|
||||||
@ -1580,7 +1565,6 @@ meta_window_actor_new (MetaWindow *window)
|
|||||||
|
|
||||||
self = g_object_new (META_TYPE_WINDOW_ACTOR,
|
self = g_object_new (META_TYPE_WINDOW_ACTOR,
|
||||||
"meta-window", window,
|
"meta-window", window,
|
||||||
"meta-screen", screen,
|
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
priv = self->priv;
|
priv = self->priv;
|
||||||
|
Loading…
Reference in New Issue
Block a user