[snappy] ui: avoid getting stuck with hidden mouse



commit 272e86ed8a78f71f400bc912af7b182f0f67e2ee
Author: Luis de Bethencourt <luis debethencourt com>
Date:   Wed Mar 27 16:29:03 2013 -0400

    ui: avoid getting stuck with hidden mouse

 src/user_interface.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/user_interface.c b/src/user_interface.c
index 4f48e07..3fa0689 100644
--- a/src/user_interface.c
+++ b/src/user_interface.c
@@ -738,11 +738,11 @@ penalty_box (gpointer data)
   if (ui->penalty_box_active) {
     ui->penalty_box_active = FALSE;
   } else {
-    g_timeout_add (PENALTY_TIME, penalty_box, ui);
     ui->penalty_box_active = TRUE;
+    g_timeout_add (PENALTY_TIME, penalty_box, ui);
   }
 
-  return ui->penalty_box_active;
+  return FALSE;
 }
 
 static gchar *


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