From 9b5ca88b97c3a00153946920ae52870c452fb4a1 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Fri, 11 Aug 2023 03:03:09 +0200 Subject: c++,window-opengl: Fixing comp issues --- c++/window/xcb.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'c++/window') 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> 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>> create_xcb_device(io_provider& provider); -- cgit v1.2.3