[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - vcl/unx
Caolán McNamara
caolanm at redhat.com
Wed Dec 16 12:32:21 PST 2015
vcl/unx/gtk/app/gtkdata.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit bd05312da42cfd91e74376cab0f243253edcec60
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Dec 15 15:14:13 2015 +0000
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
(cherry picked from commit 3bb7557d541328194eae928fda32b73650f13360)
Change-Id: I246120f2430b92cd2d3e5003445aa4c9da4f6a68
Reviewed-on: https://gerrit.libreoffice.org/20721
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
diff --git a/vcl/unx/gtk/app/gtkdata.cxx b/vcl/unx/gtk/app/gtkdata.cxx
index 2d8e26c..445ae0a 100644
--- a/vcl/unx/gtk/app/gtkdata.cxx
+++ b/vcl/unx/gtk/app/gtkdata.cxx
@@ -709,6 +709,7 @@ void GtkData::Init()
exit(0);
}
+#if !GTK_CHECK_VERSION(3,0,0)
/*
* if a -display switch was used, we need
* to set the environment accoringly since
@@ -719,6 +720,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 );
More information about the Libreoffice-commits
mailing list