don't check equality to gboolean FALSE and TRUE

This commit is contained in:
Garux
2020-05-21 15:24:44 +03:00
parent 790424dbae
commit 62603d25fb
17 changed files with 33 additions and 33 deletions

View File

@@ -101,7 +101,7 @@ void Clipper_modeChanged( bool isClipper ){
gdk_window_set_cursor( gtk_widget_get_window( xywnd->GetWidget() ), cursor );
} );
if( g_pParentWnd->GetCamWnd() )
if( !isClipper || gdk_pointer_is_grabbed() == FALSE ) /* prevent cursor change `GDK_BLANK_CURSOR->g_clipper_cursor` during freelook */
if( !isClipper || !gdk_pointer_is_grabbed() ) /* prevent cursor change `GDK_BLANK_CURSOR->g_clipper_cursor` during freelook */
gdk_window_set_cursor( gtk_widget_get_window( CamWnd_getWidget( *g_pParentWnd->GetCamWnd() ) ), cursor );
}