[gnome-control-center] color: Do not cancel the calibration if the window is unfocussed



commit bb77d525bdb903e7741d0b5cdf2a2dc57b37187b
Author: Richard Hughes <richard hughsie com>
Date:   Wed Jan 23 17:47:44 2013 +0000

    color: Do not cancel the calibration if the window is unfocussed
    
    We can recover in the session helper to some extent by repeating patches, so
    don't quit at the first sign of trouble.

 panels/color/cc-color-calibrate.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/panels/color/cc-color-calibrate.c b/panels/color/cc-color-calibrate.c
index 07e9157..2155eb8 100644
--- a/panels/color/cc-color-calibrate.c
+++ b/panels/color/cc-color-calibrate.c
@@ -676,15 +676,6 @@ cc_color_calibrate_window_state_cb (GtkWidget *widget,
   /* check event */
   if (event->type != GDK_WINDOW_STATE)
     return TRUE;
-
-  /* did the user do alt-tab? */
-  if (event_state->changed_mask == GDK_WINDOW_STATE_FOCUSED &&
-      event_state->new_window_state & GDK_WINDOW_STATE_FULLSCREEN &&
-      (event_state->new_window_state & GDK_WINDOW_STATE_FOCUSED) == 0)
-    {
-      g_debug("unfocussed calibration invalid");
-      cc_color_calibrate_cancel (calibrate);
-    }
   if (event_state->changed_mask != GDK_WINDOW_STATE_FULLSCREEN)
     return TRUE;
 



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