Groundwork for running different applications

This commit is contained in:
loki
2019-12-14 23:57:04 +01:00
parent 5541f9dca8
commit d17f37db12
8 changed files with 256 additions and 15 deletions

View File

@@ -84,6 +84,10 @@ std::string get_local_ip(int family) {
std::string get_local_ip() { return get_local_ip(AF_INET); }
void interrupt_process(std::uint64_t handle) {
kill((pid_t)handle, SIGTERM);
}
struct display_attr_t {
display_attr_t() : display { XOpenDisplay(nullptr) }, window { DefaultRootWindow(display) }, attr {} {
refresh();