comparison libvo/x11_common.c @ 36641:598ef7d90b78

Document switch case fallthroughs.
author reimar
date Sat, 25 Jan 2014 16:55:09 +0000
parents b7e306c04a3f
children 33d8f99d110a
comparison
equal deleted inserted replaced
36640:e648bb154916 36641:598ef7d90b78
892 vo_mouse_movement(event->xmotion.x, event->xmotion.y); 892 vo_mouse_movement(event->xmotion.x, event->xmotion.y);
893 893
894 return VO_EVENT_MOUSE; 894 return VO_EVENT_MOUSE;
895 case ButtonPress: 895 case ButtonPress:
896 key = MP_KEY_DOWN; 896 key = MP_KEY_DOWN;
897 /* Fallthrough, treat like release otherwise */
897 case ButtonRelease: 898 case ButtonRelease:
898 #ifdef CONFIG_GUI 899 #ifdef CONFIG_GUI
899 // Ignore mouse button 1-3 under GUI. 900 // Ignore mouse button 1-3 under GUI.
900 if (use_gui && (event->xbutton.button >= 1) 901 if (use_gui && (event->xbutton.button >= 1)
901 && (event->xbutton.button <= 3)) 902 && (event->xbutton.button <= 3))