feat(tray): 实现 tray_init 完成 system tray selection 接管

This commit is contained in:
2026-07-24 20:07:48 +08:00
parent 31cd35bf84
commit 47bd59b806
4 changed files with 207 additions and 34 deletions

17
src/backend/x11/tray.h Normal file
View File

@@ -0,0 +1,17 @@
#pragma once
#include <stdint.h>
#include <xcb/xproto.h>
#include "interface/tray.h"
extern const tray_api_t tray_api;
typedef struct backend_t backend_t;
void tray_init(
backend_t *backend,
xcb_window_t host_window,
int32_t host_width,
int32_t host_height
);