summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/include/winact.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/shared/include/winact.h b/src/shared/include/winact.h
index bc18cb4..8b32d00 100644
--- a/src/shared/include/winact.h
+++ b/src/shared/include/winact.h
@@ -9,10 +9,20 @@ struct window_action {
KEY_DOWN,
KEY_UP,
FOCUS_ENTER,
- FOCUS_LEAVE
+ FOCUS_LEAVE,
+ MOUSE_DOWN,
+ MOUSE_UP
} action_type;
union {
struct key_packet as_key;
+ struct {
+ //0, 0 is upper-left-most pixel not counting border
+ //packets are also sent for the border pixels,
+ // so this may be a negative value in those cases
+ int16_t y;
+ int16_t x;
+ enum mouse_button {LEFT, RIGHT, MIDDLE} which;
+ } as_mouse;
};
} __attribute__ ((__packed__));