]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/x11/display_platform.h
Dirty hack to pull the image loaders in when linking statically
[libs/gui.git] / source / graphics / x11 / display_platform.h
index f56d37c1789a81af760f3476953ad11787db46b9..4335f1cac3a5de89c52386f5e3e26baaa7b90e3f 100644 (file)
@@ -2,12 +2,22 @@
 #define MSP_GRAPHICS_DISPLAY_PLATFORM_H_
 
 #include <X11/Xlib.h>
+#ifdef WITH_XRANDR
+#include <X11/extensions/Xrandr.h>
+#endif
 
 namespace Msp {
 namespace Graphics {
 
 typedef ::Display *DisplayHandle;
-typedef int MonitorHandle;
+
+struct PlatformDisplayPrivate
+{
+#ifdef WITH_XRANDR
+       std::vector<RROutput> monitors;
+       std::vector<RRMode> modes;
+#endif
+};
 
 } // namespace Graphics
 } // namespace Msp