Detect x11/wayland at runtime

This commit is contained in:
Loki
2021-09-06 20:40:41 +02:00
parent 10ca72f934
commit d68b8138a5
3 changed files with 37 additions and 3 deletions

View File

@@ -12,6 +12,14 @@ KITTY_USING_MOVE_T(file_t, int, -1, {
}
});
enum class window_system_e {
NONE,
X11,
WAYLAND,
};
extern window_system_e window_system;
namespace dyn {
typedef void (*apiproc)(void);