[gnome-control-center] wacom: Fix incorrect default window information



commit 18dd6ff04f7054225990a6815a488a5fccb416d2
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Oct 8 20:09:05 2013 +0200

    wacom: Fix incorrect default window information
    
    The window isn't 1x1...

 panels/wacom/calibrator/calibrator-gui.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/panels/wacom/calibrator/calibrator-gui.c b/panels/wacom/calibrator/calibrator-gui.c
index 255d571..346f804 100644
--- a/panels/wacom/calibrator/calibrator-gui.c
+++ b/panels/wacom/calibrator/calibrator-gui.c
@@ -512,11 +512,6 @@ set_up_stage (CalibArea *calib_area, ClutterActor *stage)
                     G_CALLBACK (on_allocation_changed),
                     calib_area);
 
-  calib_area->calibrator.geometry.x = clutter_actor_get_x (stage);
-  calib_area->calibrator.geometry.y = clutter_actor_get_y (stage);
-  calib_area->calibrator.geometry.width = clutter_actor_get_width (stage);
-  calib_area->calibrator.geometry.height = clutter_actor_get_height (stage);
-
   clutter_color_from_string (&color, "#000");
   color.alpha = WINDOW_OPACITY * 255;
   clutter_actor_set_background_color (stage, &color);
@@ -723,6 +718,8 @@ calib_area_new (GdkScreen      *screen,
                                rect.width,
                                rect.height);
 
+  calib_area->calibrator.geometry = rect;
+
   set_up_stage (calib_area, stage);
 
   g_signal_connect (calib_area->window,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]