summaryrefslogtreecommitdiff
path: root/plugins/xrandr
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/xrandr')
-rw-r--r--plugins/xrandr/msd-xrandr-manager.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/xrandr/msd-xrandr-manager.c b/plugins/xrandr/msd-xrandr-manager.c
index 6330d72..d93a045 100644
--- a/plugins/xrandr/msd-xrandr-manager.c
+++ b/plugins/xrandr/msd-xrandr-manager.c
@@ -2336,8 +2336,8 @@ msd_xrandr_manager_start (MsdXrandrManager *manager,
log_open ();
log_msg ("------------------------------------------------------------\nSTARTING XRANDR PLUGIN\n");
- manager->priv->rw_screen = mate_rr_screen_new (
- gdk_screen_get_default (), on_randr_event, manager, error);
+ manager->priv->rw_screen = mate_rr_screen_new (gdk_screen_get_default (), error);
+ g_signal_connect (manager->priv->rw_screen, "screen-changed", G_CALLBACK (on_randr_event), manager);
if (manager->priv->rw_screen == NULL) {
log_msg ("Could not initialize the RANDR plugin%s%s\n",
@@ -2441,7 +2441,7 @@ msd_xrandr_manager_stop (MsdXrandrManager *manager)
}
if (manager->priv->rw_screen != NULL) {
- mate_rr_screen_destroy (manager->priv->rw_screen);
+ g_object_unref (manager->priv->rw_screen);
manager->priv->rw_screen = NULL;
}