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

New commits:
commit 7adfdb8132b0a944cb67d4e465cb61e487b59a67
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Wed Jun 12 09:56:24 2019 +0100
Commit:     Caolán McNamara <caol...@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 <caol...@redhat.com>
    Tested-by: Caolán McNamara <caol...@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);
     }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to