diff options
Diffstat (limited to 'c++/window/xcb.h')
-rw-r--r-- | c++/window/xcb.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/c++/window/xcb.h b/c++/window/xcb.h index 612b6ed..0457b58 100644 --- a/c++/window/xcb.h +++ b/c++/window/xcb.h @@ -52,6 +52,16 @@ public: own<window<backend::linux_xcb>> create_window(const video_mode& vid_mod, std::string_view title_view); void flush(); + + // XCB specific info for other classes + + ::Display* get_xcb_display() { + return display_; + } + + int get_xcb_screen() const { + return screen_; + } }; error_or<own<device<backend::linux_xcb>>> create_xcb_device(io_provider& provider); |