Sophie

Sophie

distrib > Mandriva > current > x86_64 > by-pkgid > 084001a527a951ba733aff458650a783 > files > 5

xfce-mcs-plugins-4.4.2-10mdv2009.0.src.rpm

diff -Naur xfce-mcs-plugins-4.4.2/plugins/mouse_plugin/mouse_plugin.c xfce-mcs-plugins-4.4.2.tpg/plugins/mouse_plugin/mouse_plugin.c
--- xfce-mcs-plugins-4.4.2/plugins/mouse_plugin/mouse_plugin.c	2007-11-17 19:31:23.000000000 +0000
+++ xfce-mcs-plugins-4.4.2.tpg/plugins/mouse_plugin/mouse_plugin.c	2008-05-19 13:18:52.000000000 +0000
@@ -172,7 +172,7 @@
 {
     XDeviceInfo *device_info;
     unsigned char *buttons;
-    gint n_buttons, n_devices, i;
+    gint n_buttons, n_devices, i, j;
     gint idx_1 = 0, idx_3 = 1;
     gsize buttons_capacity = 16;
 
@@ -211,15 +211,15 @@
             n_buttons = XGetDeviceButtonMapping (GDK_DISPLAY (), device, buttons, n_buttons);
         }
 
-        for (i = 0; i < n_buttons; i++)
+        for (j = 0; j < n_buttons; j++)
         {
-            if (buttons[i] == 1)
+            if (buttons[j] == 1)
             {
-                idx_1 = i;
+                idx_1 = j;
             }
-            else if (buttons[i] == ((n_buttons < 3) ? 2 : 3))
+            else if (buttons[j] == ((n_buttons < 3) ? 2 : 3))
             {
-                idx_3 = i;
+                idx_3 = j;
             }
         }