[Xfce4-commits] [apps/xfdashboard] 01/01: Fix "implicit-fallthrough" compiler warnings in libxfdashboard/click-action.c

noreply at xfce.org noreply at xfce.org
Wed Aug 28 10:41:45 CEST 2019


This is an automated email from the git hooks/post-receive script.

n   o   m   a   d       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfdashboard.

commit 62e05fa4fe66c1567a4e5a9a8284b59616f1fb12
Author: Stephan Haller <nomad at froevel.de>
Date:   Wed Aug 28 10:41:22 2019 +0200

    Fix "implicit-fallthrough" compiler warnings in libxfdashboard/click-action.c
---
 libxfdashboard/click-action.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libxfdashboard/click-action.c b/libxfdashboard/click-action.c
index 76fc30d..5b79aff 100644
--- a/libxfdashboard/click-action.c
+++ b/libxfdashboard/click-action.c
@@ -348,11 +348,11 @@ static gboolean _xfdashboard_click_action_on_captured_event(XfdashboardClickActi
 	switch(clutter_event_type(inEvent))
 	{
 		case CLUTTER_TOUCH_END:
-			hasButton=FALSE;
-
 		case CLUTTER_BUTTON_RELEASE:
 			if(!priv->isHeld) return(CLUTTER_EVENT_STOP);
 
+			hasButton=(clutter_event_type(inEvent)==CLUTTER_TOUCH_END ? FALSE : TRUE);
+
 			if((hasButton && clutter_event_get_button(inEvent)!=priv->pressButton) ||
 				(hasButton && clutter_event_get_click_count(inEvent)!=1) ||
 				clutter_event_get_device_id(inEvent)!=priv->pressDeviceID ||
@@ -453,9 +453,9 @@ static gboolean _xfdashboard_click_action_on_event(XfdashboardClickAction *self,
 	switch(clutter_event_type(inEvent))
 	{
 		case CLUTTER_TOUCH_BEGIN:
-			hasButton=FALSE;
-
 		case CLUTTER_BUTTON_PRESS:
+			hasButton=(clutter_event_type(inEvent)==CLUTTER_TOUCH_BEGIN ? FALSE : TRUE);
+
 			/* We only handle single clicks if it is pointer device */
 			if(hasButton && clutter_event_get_click_count(inEvent)!=1)
 			{

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list