diff options
author | Dave Davenport <qball@blame.services> | 2021-06-10 21:08:37 +0200 |
---|---|---|
committer | Dave Davenport <qball@blame.services> | 2021-06-10 21:08:37 +0200 |
commit | 00f290beed6991850486e4b8ee021c344203d612 (patch) | |
tree | 085c4794a44c0409bfbb81ca4af6b689ace21522 | |
parent | e7701f6f333bffca8a1ba47dcce5e9994efb1c91 (diff) |
[Widget] Fix small compile warning.
-rw-r--r-- | source/view.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/view.c b/source/view.c index c83dfa5e..f9aa21f9 100644 --- a/source/view.c +++ b/source/view.c @@ -1470,7 +1470,7 @@ gboolean rofi_view_trigger_action ( RofiViewState *state, BindingsScope scope, g case SCOPE_MOUSE_MODE_SWITCHER: { gint x = state->mouse.x, y = state->mouse.y; - widget *target = widget_find_mouse_target ( WIDGET ( state->main_window ), scope, x, y ); + widget *target = widget_find_mouse_target ( WIDGET ( state->main_window ), (WidgetType) scope, x, y ); if ( target == NULL ) { return FALSE; } @@ -1550,7 +1550,7 @@ void rofi_view_handle_mouse_motion ( RofiViewState *state, gint x, gint y, gbool rofi_view_set_cursor ( cursor_type ); if ( find_mouse_target ) { - widget *target = widget_find_mouse_target ( WIDGET ( state->main_window ), SCOPE_MOUSE_LISTVIEW_ELEMENT, x, y ); + widget *target = widget_find_mouse_target ( WIDGET ( state->main_window ), WIDGET_TYPE_LISTVIEW_ELEMENT, x, y ); if ( target != NULL ) { state->mouse.motion_target = target; |