diff options
| author | Yuqian Yang <crupest@crupest.life> | 2025-11-29 16:55:43 +0800 |
|---|---|---|
| committer | Yuqian Yang <crupest@crupest.life> | 2025-11-29 16:55:43 +0800 |
| commit | c9a461c52b37156f14944caa085bb794c184e5e3 (patch) | |
| tree | 139a30173393ccc6e1d1bb0fa64b12bd66192db5 /demos/xcb/start/main.cpp | |
| parent | 0b953f7f33b81491d5f3dd5df36f46d4c00891e4 (diff) | |
| download | cru-c9a461c52b37156f14944caa085bb794c184e5e3.tar.gz cru-c9a461c52b37156f14944caa085bb794c184e5e3.tar.bz2 cru-c9a461c52b37156f14944caa085bb794c184e5e3.zip | |
Add sdl-ime demo.
Diffstat (limited to 'demos/xcb/start/main.cpp')
| -rw-r--r-- | demos/xcb/start/main.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/demos/xcb/start/main.cpp b/demos/xcb/start/main.cpp deleted file mode 100644 index c4e3761e..00000000 --- a/demos/xcb/start/main.cpp +++ /dev/null @@ -1,23 +0,0 @@ -#include <unistd.h> -#include <xcb/xcb.h> - -int main() { - int screen_num; - xcb_connection_t* connection = xcb_connect(NULL, &screen_num); - const xcb_setup_t* setup = xcb_get_setup(connection); - xcb_screen_iterator_t iter = xcb_setup_roots_iterator(setup); - xcb_screen_t* screen = iter.data; - - xcb_window_t window = xcb_generate_id(connection); - xcb_create_window(connection, XCB_COPY_FROM_PARENT, window, screen->root, 0, - 0, 150, 150, 10, XCB_WINDOW_CLASS_INPUT_OUTPUT, - screen->root_visual, 0, NULL); - xcb_map_window(connection, window); - xcb_flush(connection); - - pause(); - - xcb_disconnect(connection); - - return 0; -} |
