Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
9dd4b063
Kaydet (Commit)
9dd4b063
authored
Tem 17, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
presumably XSetIOErrorHandler is meaningless on wayland
Change-Id: I72247a38021b11a521d785f7565c218a425a857f
üst
be62355f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
5 deletions
+17
-5
gtkdata.cxx
vcl/unx/gtk/app/gtkdata.cxx
+17
-5
No files found.
vcl/unx/gtk/app/gtkdata.cxx
Dosyayı görüntüle @
9dd4b063
...
...
@@ -47,9 +47,12 @@
#include <vcl/svapp.hxx>
#if GTK_CHECK_VERSION(3,10,0)
#ifdef GDK_WINDOWING_X11
#include <gdk/gdkx.h>
#endif
# ifdef GDK_WINDOWING_X11
# include <gdk/gdkx.h>
# endif
#else
# define GDK_WINDOWING_X11
# define GDK_IS_X11_DISPLAY(foo) true
#endif
using
namespace
vcl_sal
;
...
...
@@ -525,6 +528,7 @@ GtkData::GtkData( SalInstance *pInstance )
m_aDispatchCondition
=
osl_createCondition
();
}
#if defined(GDK_WINDOWING_X11)
XIOErrorHandler
aOrigXIOErrorHandler
=
NULL
;
extern
"C"
{
...
...
@@ -538,6 +542,7 @@ static int XIOErrorHdl(Display *)
}
}
#endif
GtkData
::~
GtkData
()
{
...
...
@@ -558,7 +563,10 @@ GtkData::~GtkData()
osl_destroyCondition
(
m_aDispatchCondition
);
osl_releaseMutex
(
m_aDispatchMutex
);
osl_destroyMutex
(
m_aDispatchMutex
);
XSetIOErrorHandler
(
aOrigXIOErrorHandler
);
#if defined(GDK_WINDOWING_X11)
if
(
GDK_IS_X11_DISPLAY
(
gdk_display_get_default
()))
XSetIOErrorHandler
(
aOrigXIOErrorHandler
);
#endif
}
void
GtkData
::
Dispose
()
...
...
@@ -679,7 +687,6 @@ void GtkData::Init()
// init gtk/gdk
gtk_init_check
(
&
nParams
,
&
pCmdLineAry
);
gdk_error_trap_push
();
aOrigXIOErrorHandler
=
XSetIOErrorHandler
(
XIOErrorHdl
);
for
(
i
=
0
;
i
<
nParams
;
i
++
)
g_free
(
pCmdLineAry
[
i
]
);
...
...
@@ -709,6 +716,11 @@ void GtkData::Init()
exit
(
0
);
}
#if defined(GDK_WINDOWING_X11)
if
(
GDK_IS_X11_DISPLAY
(
pGdkDisp
))
aOrigXIOErrorHandler
=
XSetIOErrorHandler
(
XIOErrorHdl
);
#endif
/*
* if a -display switch was used, we need
* to set the environment accoringly since
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment