diff options
Diffstat (limited to 'c++/window')
-rw-r--r-- | c++/window/xcb.cpp | 4 | ||||
-rw-r--r-- | c++/window/xcb.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/c++/window/xcb.cpp b/c++/window/xcb.cpp index dac5271..422a0b6 100644 --- a/c++/window/xcb.cpp +++ b/c++/window/xcb.cpp @@ -264,5 +264,9 @@ void window<backend::linux_xcb>::keyboard_event(int16_t x, int16_t y, uint32_t k assert(false); } +xcb_window_t window<backend::linux_xcb>::get_xcb_window_handle() const{ + return xcb_window_; +} + } } diff --git a/c++/window/xcb.h b/c++/window/xcb.h index 0457b58..fd9532b 100644 --- a/c++/window/xcb.h +++ b/c++/window/xcb.h @@ -98,6 +98,9 @@ public: void mouse_event(int16_t x, int16_t y, uint16_t state, bool pressed); void mouse_move_event(int16_t x, int16_t y); void keyboard_event(int16_t x, int16_t y, uint32_t keycode, bool pressed, bool repeat); + + // XCB specific things + xcb_window_t get_xcb_window_handle() const; }; } } |