]> git.tdb.fi Git - libs/gui.git/blob - 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
1 #ifndef MSP_GRAPHICS_DISPLAY_PLATFORM_H_
2 #define MSP_GRAPHICS_DISPLAY_PLATFORM_H_
3
4 #include <X11/Xlib.h>
5 #ifdef WITH_XRANDR
6 #include <X11/extensions/Xrandr.h>
7 #endif
8 #include "window_private.h"
9
10 namespace Msp {
11 namespace Graphics {
12
13 typedef ::Display *DisplayHandle;
14
15 struct PlatformDisplayPrivate
16 {
17         WindowHandle root_window;
18 #ifdef WITH_XRANDR
19         std::vector<RROutput> monitors;
20         std::vector<RRMode> modes;
21 #endif
22 };
23
24 } // namespace Graphics
25 } // namespace Msp
26
27 #endif