Mercurial > libanimone
comparison src/win/x11.cc @ 19:6596be6917a1
dep/animone: prepare for v1.0 release; it should be ready by now
| author | Paper <paper@paper.us.eu.org> |
|---|---|
| date | Tue, 11 Jun 2024 04:38:51 -0400 |
| parents | 27b988a1048c |
| children | 7174ff20498d |
comparison
equal
deleted
inserted
replaced
| 18:04b412228ca7 | 19:6596be6917a1 |
|---|---|
| 1 /* | |
| 2 * win/x11.c: support for X11 using XCB | |
| 3 * | |
| 4 * some things might be wrong here due to | |
| 5 * having to use recursive logic, but whatever | |
| 6 */ | |
| 1 #include "animone/win/x11.h" | 7 #include "animone/win/x11.h" |
| 2 #include "animone.h" | 8 #include "animone.h" |
| 3 #include "animone/fd.h" /* GetProcessName() */ | 9 #include "animone/fd.h" /* GetProcessName() */ |
| 4 #include "animone/win.h" | 10 #include "animone/win.h" |
| 5 | 11 |
| 14 #include <memory> | 20 #include <memory> |
| 15 | 21 |
| 16 #include <chrono> | 22 #include <chrono> |
| 17 | 23 |
| 18 #include <iostream> | 24 #include <iostream> |
| 19 | |
| 20 /* This uses XCB (and it uses it *right*), so it should be plenty fast */ | |
| 21 | 25 |
| 22 static size_t str_nlen(const char* s, size_t len) { | 26 static size_t str_nlen(const char* s, size_t len) { |
| 23 size_t i = 0; | 27 size_t i = 0; |
| 24 for (; i < len && s[i]; i++) | 28 for (; i < len && s[i]; i++) |
| 25 ; | 29 ; |
