initialize e->modifiers. fixed indentation.
authortsauerbeck <tsauerbeck>
Sun, 8 Feb 2004 19:39:29 +0000 (19:39 +0000)
committertsauerbeck <tsauerbeck@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 8 Feb 2004 19:39:29 +0000 (19:39 +0000)
SVN revision: 8909

legacy/ecore/src/lib/ecore_x/ecore_x_events.c

index f408fa8fd7baca5e2b67f23d57ae158eb62396d1..779fe3faef3b16ab42f985ff00994dc650d190aa 100644 (file)
@@ -263,14 +263,15 @@ _ecore_x_event_handle_button_press(XEvent *xevent)
          if (!e)
             return;
          
-       e->direction = 0;
-       e->z = 0;
-       if      (xevent->xbutton.button == 4) e->z = -1;
-       else if (xevent->xbutton.button == 5) e->z = 1;
-       e->x = xevent->xbutton.x;
-       e->y = xevent->xbutton.y;
-       e->root.x = xevent->xbutton.x_root;
-       e->root.y = xevent->xbutton.y_root;
+         e->modifiers = 0;
+         e->direction = 0;
+         e->z = 0;
+         if      (xevent->xbutton.button == 4) e->z = -1;
+         else if (xevent->xbutton.button == 5) e->z = 1;
+         e->x = xevent->xbutton.x;
+         e->y = xevent->xbutton.y;
+         e->root.x = xevent->xbutton.x_root;
+         e->root.y = xevent->xbutton.y_root;
 
          if (xevent->xbutton.subwindow)
             e->win = xevent->xbutton.subwindow;