core: 添加 X11 后端初始化与屏幕信息探测

This commit is contained in:
2026-03-14 13:53:12 +08:00
parent 57c0250c44
commit 6ec4d8422f
5 changed files with 326 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
#pragma once
#include "core/backend.h"
#include "core/state.h"
typedef struct wm_runtime_t {
@@ -7,6 +8,7 @@ typedef struct wm_runtime_t {
bool will_restart;
wm_state_t state;
wm_backend_t *backend;
} wm_runtime_t;
bool wm_runtime_init(wm_runtime_t *runtime);