summaryrefslogtreecommitdiff
path: root/desktop/unx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-07-20 11:27:17 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-07-21 11:01:29 +0200
commit4c00a5bce384c5fa3b46cf5bb29c7e9b1e506ea0 (patch)
tree939e9f15ea540713ae06dbfcd747de9856f563ce /desktop/unx
parentf3a82f04dd1e16a3c317fd73ad7dc076e73cf4da (diff)
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>
Diffstat (limited to 'desktop/unx')
-rw-r--r--desktop/unx/source/splashx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/desktop/unx/source/splashx.c b/desktop/unx/source/splashx.c
index afd137d06876..4f7239ab6159 100644
--- a/desktop/unx/source/splashx.c
+++ b/desktop/unx/source/splashx.c
@@ -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 )
{