Assume that, if we have X11, it supports Xinerama

By now, Xinerama is old enough that we can use the X11 server supports
it

Change-Id: Ida95902916697808c611a53274b1f0299fd298b7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154666
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin
2023-07-21 11:01:29 +02:00
parent f3a82f04dd
commit 4c00a5bce3
6 changed files with 8 additions and 15 deletions
-1
View File
@@ -711,7 +711,6 @@ export UNIX_DLAPI_LIBS=@UNIX_DLAPI_LIBS@
export USE_HEADLESS_CODE=@USE_HEADLESS_CODE@
export USE_LD=@USE_LD@
export USE_LIBRARY_BIN_TAR=@USE_LIBRARY_BIN_TAR@
export USE_XINERAMA=@USE_XINERAMA@
export UPDATE_CONFIG=@UPDATE_CONFIG@
export UUIDGEN=@UUIDGEN@
export VALGRIND_CFLAGS=$(gb_SPACE)@VALGRIND_CFLAGS@
+2 -3
View File
@@ -13572,7 +13572,7 @@ fi
AC_SUBST(ENABLE_SILENT_MSI)
AC_MSG_CHECKING([whether and how to use Xinerama])
if test "$_os" = "Linux" -o "$_os" = "FreeBSD"; then
if test "$USING_X11" = TRUE; then
if test "$x_libraries" = "default_x_libraries"; then
XINERAMALIB=`$PKG_CONFIG --variable=libdir xinerama`
if test "x$XINERAMALIB" = x; then
@@ -13626,14 +13626,13 @@ if test "$_os" = "Linux" -o "$_os" = "FreeBSD"; then
AC_CHECK_LIB([Xinerama], [XineramaIsActive], [:],
[AC_MSG_ERROR(Xinerama not functional?)], [$XINERAMA_EXTRA_LIBS])
else
AC_MSG_RESULT([no, libXinerama not found or wrong architecture.])
AC_MSG_ERROR([libXinerama not found or wrong architecture.])
fi
else
USE_XINERAMA=
XINERAMA_LINK=none
AC_MSG_RESULT([no])
fi
AC_SUBST(USE_XINERAMA)
AC_SUBST(XINERAMA_LINK)
AC_MSG_CHECKING([whether to use non-standard RGBA32 cairo pixel order])
+1 -1
View File
@@ -23,7 +23,7 @@ $(eval $(call gb_Executable_add_cobjects,oosplash,\
desktop/unx/source/start \
))
ifneq ($(USE_XINERAMA),)
ifneq ($(USING_X11),)
$(eval $(call gb_Executable_add_defs,oosplash,\
-DUSE_XINERAMA \
+3 -3
View File
@@ -16,7 +16,7 @@
#include <X11/Xatom.h>
#include <X11/Xutil.h>
#ifdef USE_XINERAMA
#ifdef USING_X11
#include <X11/extensions/Xinerama.h>
#endif
@@ -406,7 +406,7 @@ static int splash_init_display( struct splash* splash, int argc, char** argv )
{
char *display_name = NULL;
int i;
#ifdef USE_XINERAMA
#ifdef USING_X11
int n_xinerama_screens = 1;
XineramaScreenInfo* p_screens = NULL;
#endif
@@ -442,7 +442,7 @@ static int splash_init_display( struct splash* splash, int argc, char** argv )
splash->display_x_pos = 0;
splash->display_y_pos = 0;
#ifdef USE_XINERAMA
#ifdef USING_X11
p_screens = XineramaQueryScreens( splash->display, &n_xinerama_screens );
if( p_screens )
{
+2 -2
View File
@@ -133,7 +133,7 @@ $(eval $(call gb_Library_add_defs,vclplug_gen,\
endif
## handle Xinerama
ifneq ($(USE_XINERAMA),)
ifneq ($(USING_X11),)
$(eval $(call gb_Library_add_defs,vclplug_gen,\
-DUSE_XINERAMA_XORG \
))
@@ -146,7 +146,7 @@ $(eval $(call gb_Library_add_libs,vclplug_gen,\
-Wl$(COMMA)-Bstatic -lXinerama -Wl$(COMMA)-Bdynamic \
))
endif
endif # USE_XINERAMA
endif # USING_X11
ifeq ($(OS),LINUX)
$(eval $(call gb_Library_add_libs,vclplug_gen,\
-5
View File
@@ -39,10 +39,7 @@
#endif
#include <X11/keysym.h>
#include <X11/Xatom.h>
#ifdef USE_XINERAMA_XORG
#include <X11/extensions/Xinerama.h>
#endif
#include <i18nlangtag/languagetag.hxx>
#include <tools/debug.hxx>
@@ -2213,7 +2210,6 @@ void SalDisplay::InitXinerama()
m_bXinerama = false;
return; // multiple screens mean no xinerama
}
#if defined(USE_XINERAMA_XORG)
if( !XineramaIsActive( pDisp_ ) )
return;
@@ -2236,7 +2232,6 @@ void SalDisplay::InitXinerama()
m_bXinerama = m_aXineramaScreens.size() > 1;
}
XFree( pScreens );
#endif
#if OSL_DEBUG_LEVEL > 1
if( m_bXinerama )
{