aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/hw/xwin/winmonitors.c
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/hw/xwin/winmonitors.c')
-rw-r--r--xorg-server/hw/xwin/winmonitors.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/xorg-server/hw/xwin/winmonitors.c b/xorg-server/hw/xwin/winmonitors.c
index 07532f6f5..ab8842a32 100644
--- a/xorg-server/hw/xwin/winmonitors.c
+++ b/xorg-server/hw/xwin/winmonitors.c
@@ -27,7 +27,12 @@ from The Open Group.
*/
+#ifdef HAVE_XWIN_CONFIG_H
+#include <xwin-config.h>
+#endif
#include "win.h"
+#define COMPILE_MULTIMON_STUBS
+#include <multimon.h>
#include "winmonitors.h"
/*
@@ -64,7 +69,5 @@ QueryMonitor(int index, struct GetMonitorInfoData *data)
data->requestedMonitor = index;
/* query information */
- EnumDisplayMonitors(NULL, NULL, getMonitorInfo, (LPARAM) data);
-
- return TRUE;
+ return !EnumDisplayMonitors(NULL, NULL, getMonitorInfo, (LPARAM) data);
}