处理焦点相关事件
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
#include <xcb/xproto.h>
|
||||
|
||||
#include "types.h"
|
||||
|
||||
@@ -21,6 +22,24 @@ typedef enum event_type_t {
|
||||
EVENT_TYPE_CLIENT_MESSAGE,
|
||||
} event_type_t;
|
||||
|
||||
typedef enum notify_mode_t {
|
||||
notify_mode_normal = 0,
|
||||
notify_mode_grab = 1,
|
||||
notify_mode_ungrab = 2,
|
||||
notify_mode_while_grabbed = 3
|
||||
} notify_mode_t;
|
||||
|
||||
typedef enum notify_detail_t {
|
||||
notify_detail_ancestor = 0,
|
||||
notify_detail_virtual = 1,
|
||||
notify_detail_inferior = 2,
|
||||
notify_detail_nonlinear = 3,
|
||||
notify_detail_nonlinear_virtual = 4,
|
||||
notify_detail_pointer = 5,
|
||||
notify_detail_pointer_root = 6,
|
||||
notify_detail_none = 7,
|
||||
} notify_detail_t;
|
||||
|
||||
typedef struct mapping_notify_event_t {
|
||||
event_type_t type;
|
||||
} mapping_notify_event_t;
|
||||
@@ -81,10 +100,14 @@ typedef struct motion_notify_event_t {
|
||||
|
||||
typedef struct enter_notify_event_t {
|
||||
event_type_t type;
|
||||
xcb_window_t window;
|
||||
notify_mode_t mode;
|
||||
notify_detail_t detail;
|
||||
} enter_notify_event_t;
|
||||
|
||||
typedef struct focus_in_event_t {
|
||||
event_type_t type;
|
||||
xcb_window_t window;
|
||||
} focus_in_event_t;
|
||||
|
||||
typedef struct property_notify_event_t {
|
||||
|
||||
Reference in New Issue
Block a user