repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: 190e279c2b59761f4c0d833a1b42601c205c0e31:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit 190e279c2b59761f4c0d833a1b42601c205c0e31
Author: Emanuele Giaquinta 
Date:   Thu Nov 15 10:13:37 2007 +0000

    Fix coding style.

diff --git a/src/command.C b/src/command.C
index f847177991bc9621c442ab4d71c547fda5a6832b..
index ..5cf1d4c3b2dcb54364a63034cad40b6e3152d6bc 100644
--- a/src/command.C
+++ b/src/command.C
@@ -1253,13 +1253,14 @@ rxvt_term::mouse_report (XButtonEvent &ev)

   x = Pixel2Col (ev.x);
   y = Pixel2Row (ev.y);
-  if (ev.type == MotionNotify) {
-    if (x == mouse_row && y == mouse_col)
-      return;
-    mouse_row = x;
-    mouse_col = y;
-    code += 32;
-  }
+  if (ev.type == MotionNotify)
+    {
+      if (x == mouse_row && y == mouse_col)
+        return;
+      mouse_row = x;
+      mouse_col = y;
+      code += 32;
+    }

   if (MEvent.button == AnyButton)
     button_number = 3;
@@ -3699,11 +3700,13 @@ rxvt_term::process_terminal_mode (int mode, int priv UNUSED, unsigned int nargs,
 #endif
             case 1002:
             case 1003:
-              if (state) {
-                priv_modes &= ~(PrivMode_MouseX10|PrivMode_MouseX11);
-                priv_modes &= arg[i] == 1003 ? ~PrivMode_MouseBtnEvent : ~PrivMode_MouseAnyEvent;
-                vt_emask_mouse = PointerMotionMask;
-              } else
+              if (state)
+                {
+                  priv_modes &= ~(PrivMode_MouseX10|PrivMode_MouseX11);
+                  priv_modes &= arg[i] == 1003 ? ~PrivMode_MouseBtnEvent : ~PrivMode_MouseAnyEvent;
+                  vt_emask_mouse = PointerMotionMask;
+                }
+              else
                 vt_emask_mouse = NoEventMask;
               vt_select_input ();
               break;

-----END OF PAGE-----