From ccd6a5fa0e7d39ec409cc702193a22d0abbb78d7 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Sat, 1 Feb 2014 21:01:09 +0000 Subject: [PATCH] don't avoid no-window widgets in GTKUpdateCursor() it doesn't work for things like multi-line text control where m_widget is a no-window GtkScrolledWindow git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75761 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/window.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 934e12b43a..9045ef5f6e 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -3671,12 +3671,8 @@ bool wxWindowGTK::SetCursor( const wxCursor &cursor ) void wxWindowGTK::GTKUpdateCursor(bool, bool) { - if (m_widget == NULL || - !gtk_widget_get_realized(m_widget) || - (m_wxwindow == NULL && !gtk_widget_get_has_window(m_widget))) - { + if (m_widget == NULL || !gtk_widget_get_realized(m_widget)) return; - } GdkCursor* cursor = NULL; if (m_cursor.IsOk())