调整壁纸绘制方案

This commit is contained in:
2025-08-25 11:57:23 +08:00
parent ebfed8245c
commit 3dd2f80128
6 changed files with 110 additions and 22 deletions

View File

@@ -82,6 +82,8 @@ typedef struct rect_size_t {
uint32_t height;
} rect_size_t;
rect_size_t *get_screen_size(void);
bar_cairo_params_t *prepare_wallpaper_surface_params(void);
void refresh_root_window(void);
void set_wallpaper(uint32_t *wallpaper_data);
typedef struct window_list_t {
@@ -105,6 +107,8 @@ typedef enum atom_t {
atom_wm_delete,
atom_wm_take_focus,
atom_net_wm_name,
atom__xrootpmap_id,
atom_esetroot_pmap_id,
} atom_t;
xcb_atom_t get_xcb_atom(atom_t atom);
bool send_event(xcb_window_t window, atom_t atom);