mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-25 13:55:34 -05:00
[Widget] Fix small compile warning.
This commit is contained in:
parent
e7701f6f33
commit
00f290beed
1 changed files with 2 additions and 2 deletions
|
@ -1470,7 +1470,7 @@ gboolean rofi_view_trigger_action ( RofiViewState *state, BindingsScope scope, g
|
||||||
case SCOPE_MOUSE_MODE_SWITCHER:
|
case SCOPE_MOUSE_MODE_SWITCHER:
|
||||||
{
|
{
|
||||||
gint x = state->mouse.x, y = state->mouse.y;
|
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 ) {
|
if ( target == NULL ) {
|
||||||
return FALSE;
|
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 );
|
rofi_view_set_cursor ( cursor_type );
|
||||||
|
|
||||||
if ( find_mouse_target ) {
|
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 ) {
|
if ( target != NULL ) {
|
||||||
state->mouse.motion_target = target;
|
state->mouse.motion_target = target;
|
||||||
|
|
Loading…
Reference in a new issue