]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/x11/display_platform.h
Store the root window's ID in display private data
[libs/gui.git] / source / graphics / x11 / display_platform.h
index 8db3e98e8f79eab86f4d3a6aba6a8422aab9cae6..974f9c07d7ebfd1e1abc6d982bef46ca2ea99ce4 100644 (file)
@@ -2,14 +2,24 @@
 #define MSP_GRAPHICS_DISPLAY_PLATFORM_H_
 
 #include <X11/Xlib.h>
+#ifdef WITH_XRANDR
 #include <X11/extensions/Xrandr.h>
+#endif
+#include "window_private.h"
 
 namespace Msp {
 namespace Graphics {
 
 typedef ::Display *DisplayHandle;
-typedef RROutput MonitorHandle;
-typedef RRMode ModeHandle;
+
+struct PlatformDisplayPrivate
+{
+       WindowHandle root_window;
+#ifdef WITH_XRANDR
+       std::vector<RROutput> monitors;
+       std::vector<RRMode> modes;
+#endif
+};
 
 } // namespace Graphics
 } // namespace Msp