显示窗口

This commit is contained in:
2025-08-22 15:47:58 +08:00
parent 2a7ab324be
commit c3bcb7ddd2
9 changed files with 274 additions and 14 deletions

View File

@@ -2,6 +2,8 @@
#include <stdint.h>
#include "types.h"
typedef enum event_type_t {
EVENT_TYPE_MAPPING_NOTIFY,
EVENT_TYPE_KEY_PRESS,
@@ -35,6 +37,13 @@ typedef struct button_press_event_t {
typedef struct configure_request_event_t {
event_type_t type;
xcb_window_t window;
xcb_window_t parent;
xcb_window_t sibling;
int32_t x, y;
uint32_t width, height, border_width;
uint32_t value_mask;
uint8_t stack_mode;
} configure_request_event_t;
typedef struct configure_notify_event_t {
@@ -43,6 +52,8 @@ typedef struct configure_notify_event_t {
typedef struct map_request_event_t {
event_type_t type;
xcb_window_t window;
xcb_window_t parent;
} map_request_event_t;
typedef struct unmap_notify_event_t {