[PATCH libxcwm 09/15] Remove unused button parameter to xcwm_input_mouse_motion()

Jon TURNEY jon.turney at dronecode.org.uk
Mon Nov 5 14:44:03 PST 2012


Signed-off-by: Jon TURNEY <jon.turney at dronecode.org.uk>
---
 include/xcwm/input.h      |    2 +-
 src/libxcwm/input.c       |    2 +-
 src/xtoq/XtoqController.m |    3 +--
 3 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/include/xcwm/input.h b/include/xcwm/input.h
index 4316ad8..8f9d114 100644
--- a/include/xcwm/input.h
+++ b/include/xcwm/input.h
@@ -62,7 +62,7 @@ xcwm_input_mouse_button_event(xcwm_window_t *window,
  * @param y - y coordinate
  */
 void
-xcwm_input_mouse_motion(xcwm_context_t *context, long x, long y, int button);
+xcwm_input_mouse_motion(xcwm_context_t *context, long x, long y);
 
 
 #endif  /* _XCWM_INPUT_H_ */
diff --git a/src/libxcwm/input.c b/src/libxcwm/input.c
index 55e598a..2fe00c8 100644
--- a/src/libxcwm/input.c
+++ b/src/libxcwm/input.c
@@ -72,7 +72,7 @@ xcwm_input_mouse_button_event(xcwm_window_t *window,
 }
 
 void
-xcwm_input_mouse_motion(xcwm_context_t *context, long x, long y, int button)
+xcwm_input_mouse_motion(xcwm_context_t *context, long x, long y)
 {
     xcb_test_fake_input(context->conn, XCB_MOTION_NOTIFY, 0, XCB_CURRENT_TIME,
                         context->root_window->window_id, x, y, 0);
diff --git a/src/xtoq/XtoqController.m b/src/xtoq/XtoqController.m
index 8cef877..eebc09d 100644
--- a/src/xtoq/XtoqController.m
+++ b/src/xtoq/XtoqController.m
@@ -191,8 +191,7 @@
                       (rootContext,
                        [xNum intValue],
                        //Converting OSX coordinates to X11
-                       height - WINDOWBAR - [yNum intValue],
-                       0);
+                       height - WINDOWBAR - [yNum intValue]);
                    });
 }
 
-- 
1.7.9



More information about the xorg-devel mailing list