fix default values of z and direction
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 19 Apr 2009 08:37:08 +0000 (08:37 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 19 Apr 2009 08:37:08 +0000 (08:37 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@40215 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_x/xlib/ecore_x_events.c

index d50c72b..8838778 100644 (file)
@@ -454,6 +454,7 @@ _ecore_x_event_handle_button_press(XEvent *xevent)
           case 5: e->direction = 0; e->z = 1; break;
           case 6: e->direction = 1; e->z = -1; break;
           case 7: e->direction = 1; e->z = 1; break;
+           default: e->direction = 0; e->z = 0; break;
          }
 
        e->x = xevent->xbutton.x;