]>
Dogcows Code - chaz/openbox/blob - openbox/dispatch.h
7 void dispatch_startup();
8 void dispatch_shutdown();
11 Event_X_EnterNotify
= 1 << 0, /* pointer entered a window */
12 Event_X_LeaveNotify
= 1 << 1, /* pointer left a window */
13 Event_X_KeyPress
= 1 << 2, /* key pressed */
14 Event_X_KeyRelease
= 1 << 3, /* key released */
15 Event_X_ButtonPress
= 1 << 4, /* mouse button pressed */
16 Event_X_ButtonRelease
= 1 << 5, /* mouse button released */
17 Event_X_MotionNotify
= 1 << 6, /* mouse motion */
18 Event_X_Bell
= 1 << 7, /* an XKB bell event */
20 Event_Client_New
= 1 << 8, /* new window, before mapping */
21 Event_Client_Mapped
= 1 << 9, /* new window, after mapping */
22 Event_Client_Destroy
= 1 << 10, /* unmanaged */
23 Event_Client_Unmapped
= 1 << 11, /* unmanaged, after unmapping */
24 Event_Client_Focus
= 1 << 12, /* focused */
25 Event_Client_Unfocus
= 1 << 13, /* unfocused */
26 Event_Client_Urgent
= 1 << 14, /* entered/left urgent state */
27 Event_Client_Desktop
= 1 << 15, /* moved to a new desktop */
29 Event_Ob_Desktop
= 1 << 16, /* changed desktops */
30 Event_Ob_NumDesktops
= 1 << 17, /* changed the number of desktops */
31 Event_Ob_ShowDesktop
= 1 << 18, /* entered/left show-the-desktop mode */
33 Event_Signal
= 1 << 19, /* a signal from the OS */
46 /* Event_Client_Desktop: num[0] = new number, num[1] = old number
47 Event_Client_Urgent: num[0] = urgent state
53 /* Event_Ob_Desktop: num[0] = new number, num[1] = old number
54 Event_Ob_NumDesktops: num[0] = new number, num[1] = old number
55 Event_Ob_ShowDesktop: num[0] = new show-desktop mode
64 EventData_X x
; /* for Event_X_* event types */
65 EventData_Client c
; /* for Event_Client_* event types */
66 EventData_Ob o
; /* for Event_Ob_* event types */
67 EventData_Signal s
; /* for Event_Signal */
75 typedef void (*EventHandler
)(const ObEvent
*e
, void *data
);
77 typedef unsigned int EventMask
;
79 void dispatch_register(EventMask mask
, EventHandler h
, void *data
);
81 void dispatch_x(XEvent
*e
, Client
*c
);
82 void dispatch_client(EventType e
, Client
*c
, int num0
, int num1
);
83 void dispatch_ob(EventType e
, int num0
, int num1
);
84 void dispatch_signal(int signal
);
This page took 0.038566 seconds and 4 git commands to generate.