diff options
author | Quentin Glidic <sardemff7+git@sardemff7.net> | 2017-05-30 12:13:25 +0200 |
---|---|---|
committer | Quentin Glidic <sardemff7+git@sardemff7.net> | 2017-05-30 13:45:17 +0200 |
commit | 685d4f0e13bee9a23c647e637e2f7194353be501 (patch) | |
tree | 43afb07a92fb5b8dbcdb6d90d1d9e2a1defb8c97 /include/widgets | |
parent | 30da7e587a2a1e90c4338af4d07e5bd3be77ecc3 (diff) |
widget: Rely on find_mouse_target to send motion events
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
Diffstat (limited to 'include/widgets')
-rw-r--r-- | include/widgets/widget-internal.h | 2 | ||||
-rw-r--r-- | include/widgets/widget.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/widgets/widget-internal.h b/include/widgets/widget-internal.h index 60e1d11c..0addb2b5 100644 --- a/include/widgets/widget-internal.h +++ b/include/widgets/widget-internal.h @@ -78,7 +78,7 @@ struct _widget void ( *update )( struct _widget * ); /** Handle mouse motion, used for dragging */ - gboolean ( *motion_notify )( struct _widget *, xcb_motion_notify_event_t * ); + gboolean ( *motion_notify )( struct _widget *, gint x, gint y ); int ( *get_desired_height )( struct _widget * ); diff --git a/include/widgets/widget.h b/include/widgets/widget.h index dcfe593d..3737380f 100644 --- a/include/widgets/widget.h +++ b/include/widgets/widget.h @@ -268,7 +268,7 @@ void widget_set_trigger_action_handler ( widget *wid, widget_trigger_action_cb c * TODO make this like clicked with callback. * returns TRUE when handled. */ -gboolean widget_motion_notify ( widget *wid, xcb_motion_notify_event_t *xme ); +gboolean widget_motion_notify ( widget *wid, gint x, gint y ); /** * @param wid The widget handle |