mousetweaks r349 - in trunk: . src



Author: gerdk
Date: Thu Nov 13 16:15:30 2008
New Revision: 349
URL: http://svn.gnome.org/viewvc/mousetweaks?rev=349&view=rev

Log:
2008-11-13  Gerd Kohlberger  <gerdk svn gnome org>

	* src/mt-main.c: (global_motion_event): Make sure drag-clicks also
	work if both Dwell Click and Simulated Secondary Click are enabled.



Modified:
   trunk/ChangeLog
   trunk/src/mt-main.c

Modified: trunk/src/mt-main.c
==============================================================================
--- trunk/src/mt-main.c	(original)
+++ trunk/src/mt-main.c	Thu Nov 13 16:15:30 2008
@@ -420,6 +420,13 @@
 {
     MTClosure *mt = data;
 
+    if (mt_timer_is_running (mt->delay_timer)) {
+	if (!below_threshold (mt, event->x, event->y)) {
+	    mt_timer_stop (mt->delay_timer);
+	    mt_cursor_manager_restore_all (mt_cursor_manager_get_default ());
+	}
+    }
+
     if (mt->dwell_enabled) {
 	if (!below_threshold (mt, event->x, event->y) &&
 	    !mt->dwell_gesture_started) {
@@ -441,13 +448,6 @@
 	    mt->y_old = event->y;
 	}
     }
-
-    if (mt_timer_is_running (mt->delay_timer)) {
-	if (!below_threshold (mt, event->x, event->y)) {
-	    mt_timer_stop (mt->delay_timer);
-	    mt_cursor_manager_restore_all (mt_cursor_manager_get_default ());
-	}
-    }
 }
 
 static void



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