summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-12-15 15:14:13 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-12-15 15:15:57 +0000
commit3bb7557d541328194eae928fda32b73650f13360 (patch)
tree6883766251eaa25e4105ead912688578232e1660 /vcl
parent1cb87bf384820b3dc04b00422c7fc04f5d330ea2 (diff)
Resolves: rhbz#1285364 urls cannot be opened under wayland
because we're setting DISPLAY always, and under wayland that resolves to "wayland", not the original ":0" so the gtk2 gvfs-open eventually called open xdg-open cannot open the correct display Change-Id: I246120f2430b92cd2d3e5003445aa4c9da4f6a68
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/gtk/gtkdata.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/unx/gtk/gtkdata.cxx b/vcl/unx/gtk/gtkdata.cxx
index f65b4e0a7567..b5c64e05d302 100644
--- a/vcl/unx/gtk/gtkdata.cxx
+++ b/vcl/unx/gtk/gtkdata.cxx
@@ -730,6 +730,7 @@ void GtkData::Init()
aOrigXIOErrorHandler = XSetIOErrorHandler(XIOErrorHdl);
#endif
+#if !GTK_CHECK_VERSION(3,0,0)
/*
* if a -display switch was used, we need
* to set the environment accoringly since
@@ -740,6 +741,7 @@ void GtkData::Init()
const gchar *name = gdk_display_get_name( pGdkDisp );
OUString envValue(name, strlen(name), aEnc);
osl_setEnvironment(envVar.pData, envValue.pData);
+#endif
GtkSalDisplay *pDisplay = new GtkSalDisplay( pGdkDisp );
SetDisplay( pDisplay );