[Libreoffice-commits] core.git: Branch 'libreoffice-6-3' - vcl/unx

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Thu Jun 13 07:59:31 UTC 2019


 vcl/unx/gtk3/gtk3gtkinst.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 7adfdb8132b0a944cb67d4e465cb61e487b59a67
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Jun 12 09:56:24 2019 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Jun 13 09:58:48 2019 +0200

    setting cursor needs widget to be realized
    
    Change-Id: I56b1bb83dc221c87ec7aac72b406d67c85f74f43
    Reviewed-on: https://gerrit.libreoffice.org/73881
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx
index aafdf7e425d8..ec1f6d4e28bd 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -8823,6 +8823,8 @@ public:
     virtual void set_cursor(PointerStyle ePointerStyle) override
     {
         GdkCursor *pCursor = GtkSalFrame::getDisplay()->getCursor(ePointerStyle);
+        if (!gtk_widget_get_realized(GTK_WIDGET(m_pDrawingArea)))
+            gtk_widget_realize(GTK_WIDGET(m_pDrawingArea));
         gdk_window_set_cursor(gtk_widget_get_window(GTK_WIDGET(m_pDrawingArea)), pCursor);
     }
 


More information about the Libreoffice-commits mailing list