[Libreoffice-commits] core.git: vcl/unx
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Wed Jun 12 14:37:19 UTC 2019
vcl/unx/gtk3/gtk3gtkinst.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit f6e2e0d022340b1dbbf8fd16be2f4fed3a57612c
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: Wed Jun 12 16:35:38 2019 +0200
setting cursor needs widget to be realized
Change-Id: I56b1bb83dc221c87ec7aac72b406d67c85f74f43
Reviewed-on: https://gerrit.libreoffice.org/73879
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 eb1511d5f53a..0447ee41280c 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -8774,6 +8774,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