]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/x11/display_platform.h
Track window positions
[libs/gui.git] / source / graphics / x11 / display_platform.h
index 3a213c009eaa7004cf98e24286b4fe5d63621e15..974f9c07d7ebfd1e1abc6d982bef46ca2ea99ce4 100644 (file)
@@ -5,18 +5,21 @@
 #ifdef WITH_XRANDR
 #include <X11/extensions/Xrandr.h>
 #endif
+#include "window_private.h"
 
 namespace Msp {
 namespace Graphics {
 
 typedef ::Display *DisplayHandle;
+
+struct PlatformDisplayPrivate
+{
+       WindowHandle root_window;
 #ifdef WITH_XRANDR
-typedef RROutput MonitorHandle;
-typedef RRMode ModeHandle;
-#else
-typedef int MonitorHandle;
-typedef int ModeHandle;
+       std::vector<RROutput> monitors;
+       std::vector<RRMode> modes;
 #endif
+};
 
 } // namespace Graphics
 } // namespace Msp