处理窗口销毁事件

This commit is contained in:
2025-08-24 11:35:52 +08:00
parent bac73368e3
commit 0039cd2c43
7 changed files with 80 additions and 32 deletions

View File

@@ -1,5 +1,6 @@
#pragma once
#include <stdbool.h>
#include <stdint.h>
#include <xcb/xproto.h>
@@ -78,10 +79,12 @@ typedef struct map_request_event_t {
typedef struct unmap_notify_event_t {
event_type_t type;
xcb_window_t window;
bool send_event;
} unmap_notify_event_t;
typedef struct destroy_notify_event_t {
event_type_t type;
xcb_window_t window;
} destroy_notify_event_t;
typedef struct expose_event_t {