34 lines
715 B
C
34 lines
715 B
C
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
#include <xcb/xproto.h>
|
|
|
|
bool has_other_wm_running(void);
|
|
int get_xcb_connection_fd(void);
|
|
|
|
typedef struct monitor_rect_t monitor_rect_t;
|
|
struct monitor_rect_t {
|
|
int32_t x;
|
|
int32_t y;
|
|
uint32_t width;
|
|
uint32_t height;
|
|
monitor_rect_t *next;
|
|
};
|
|
monitor_rect_t *detect_monitor_rect(void);
|
|
|
|
typedef struct rect_size_t {
|
|
uint32_t width;
|
|
uint32_t height;
|
|
} rect_size_t;
|
|
rect_size_t *get_screen_size(void);
|
|
void set_wallpaper(uint32_t *wallpaper_data);
|
|
|
|
typedef struct window_list_t {
|
|
uint32_t count;
|
|
xcb_window_t *list;
|
|
} window_list_t;
|
|
window_list_t *scan_window_list(void);
|
|
void free_window_list(window_list_t *window_list);
|
|
void clean_xcb(void);
|