检测显示器信息
This commit is contained in:
8
src/include/utils.h
Normal file
8
src/include/utils.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#define LENGTH(X) (sizeof(X) / sizeof(X)[0])
|
||||
|
||||
void die(const char *format, ...);
|
||||
void *ecalloc(size_t number_of_member, size_t member_size);
|
||||
16
src/include/xcb.h
Normal file
16
src/include/xcb.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
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;
|
||||
};
|
||||
|
||||
bool has_other_wm_running(void);
|
||||
monitor_rect_t *detect_monitor_rect(void);
|
||||
Reference in New Issue
Block a user