diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-06-29 13:10:00 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-06-29 13:10:00 +0200 |
commit | dd5d61330032511f5b0e05e813bbfe2054841f5d (patch) | |
tree | f305da557d34ab69d9fe43bb3f60fc8d962a3cae /src/window/xcb.h | |
parent | e2b2f8b9a395a235e26e4b449b3498a2c0410f8f (diff) |
c++,window: Reworking the context creation
Diffstat (limited to 'src/window/xcb.h')
-rw-r--r-- | src/window/xcb.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/window/xcb.h b/src/window/xcb.h index 430ea28..bbdf1ed 100644 --- a/src/window/xcb.h +++ b/src/window/xcb.h @@ -4,9 +4,15 @@ #error "XCB is not supported" #endif +#include "backends.h" +#include "device.h" + namespace saw { +namespace gfx { class window; -class device { + +template<> +class device<backend::xcb> final { private: ::Display *display_; int screen_; @@ -67,3 +73,4 @@ public: void keyboard_event(int16_t x, int16_t y, uint32_t keycode, bool pressed, bool repeat); }; } +} |