From: Christophe CURIS <[email protected]>

The function does not use the event argument, so remove it.

Signed-off-by: Christophe CURIS <[email protected]>
---
 WINGs/dragdestination.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/WINGs/dragdestination.c b/WINGs/dragdestination.c
index 3c828e8..6ea680f 100644
--- a/WINGs/dragdestination.c
+++ b/WINGs/dragdestination.c
@@ -529,7 +529,7 @@ static void *checkActionAllowed(WMView * destView, 
WMDraggingInfo * info)
        return dropAllowedState;
 }
 
-static void *checkDropAllowed(WMView * destView, XClientMessageEvent * event, 
WMDraggingInfo * info)
+static void *checkDropAllowed(WMView *destView, WMDraggingInfo *info)
 {
        storeRequiredTypeList(info);
 
@@ -664,7 +664,7 @@ static void *idleState(WMView * destView, 
XClientMessageEvent * event, WMDraggin
 
                        if (XDND_SOURCE_TYPES(info) != NULL) {
                                /* enter message infos are available */
-                               return checkDropAllowed(destView, event, info);
+                               return checkDropAllowed(destView, info);
                        }
 
                        /* waiting for enter message */
@@ -685,7 +685,7 @@ static void *waitEnterState(WMView * destView, 
XClientMessageEvent * event, WMDr
 
        if (sourceMsg == scr->xdndEnterAtom) {
                W_DragDestinationStoreEnterMsgInfo(info, destView, event);
-               return checkDropAllowed(destView, event, info);
+               return checkDropAllowed(destView, info);
        }
 
        return waitEnterState;
@@ -728,7 +728,7 @@ static void *dropNotAllowedState(WMView * destView, 
XClientMessageEvent * event,
 
        if (sourceMsg == scr->xdndPositionAtom) {
                if (XDND_SOURCE_ACTION_CHANGED(info)) {
-                       return checkDropAllowed(destView, event, info);
+                       return checkDropAllowed(destView, info);
                } else {
                        sendStatusMessage(destView, info, None);
                        return dropNotAllowedState;
@@ -764,7 +764,7 @@ static void *dropAllowedState(WMView * destView, 
XClientMessageEvent * event, WM
 
        if (sourceMsg == scr->xdndPositionAtom) {
                if (XDND_SOURCE_ACTION_CHANGED(info)) {
-                       return checkDropAllowed(destView, event, info);
+                       return checkDropAllowed(destView, info);
                } else {
                        sendStatusMessage(destView, info, 
XDND_DEST_ACTION(info));
                        return dropAllowedState;
-- 
1.8.4.rc3


-- 
To unsubscribe, send mail to [email protected].

Reply via email to