From af9850510f1c24c9f3d0298867cd2fc3a99a2119 Mon Sep 17 00:00:00 2001 From: Garux Date: Mon, 14 May 2018 13:36:44 +0300 Subject: [PATCH] prevent cursor change `GDK_BLANK_CURSOR->g_clipper_cursor` during freelook --- radiant/clippertool.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/radiant/clippertool.cpp b/radiant/clippertool.cpp index 31a85e57..3c0e12ed 100644 --- a/radiant/clippertool.cpp +++ b/radiant/clippertool.cpp @@ -102,7 +102,8 @@ void Clipper_modeChanged( bool isClipper ){ if( ( xywnd = g_pParentWnd->GetYZWnd() ) ) gdk_window_set_cursor( xywnd->GetWidget()->window, cursor ); if( g_pParentWnd->GetCamWnd() ) - gdk_window_set_cursor( CamWnd_getWidget( *g_pParentWnd->GetCamWnd() )->window, cursor ); + if( !isClipper || gdk_pointer_is_grabbed() == FALSE ) /* prevent cursor change `GDK_BLANK_CURSOR->g_clipper_cursor` during freelook */ + gdk_window_set_cursor( CamWnd_getWidget( *g_pParentWnd->GetCamWnd() )->window, cursor ); } if( g_clipper_resetFlip )