summaryrefslogtreecommitdiff
path: root/src/shared/include/winact.h
diff options
context:
space:
mode:
authorBenji Dial <benji6283@gmail.com>2021-03-08 16:46:22 -0500
committerBenji Dial <benji6283@gmail.com>2021-03-08 16:46:22 -0500
commit920f1f010284d59bad86f78355ed90ac2f3e1d2c (patch)
tree19e2abcf6f546e251151582c700cfce312224eb1 /src/shared/include/winact.h
parentaf52ddac750311ace3bd997245771b26119e1659 (diff)
downloadportland-os-920f1f010284d59bad86f78355ed90ac2f3e1d2c.tar.gz
mouse movement in raleigh, with colorpicker dragging example
Diffstat (limited to 'src/shared/include/winact.h')
-rw-r--r--src/shared/include/winact.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/shared/include/winact.h b/src/shared/include/winact.h
index 9486efc..13e07f5 100644
--- a/src/shared/include/winact.h
+++ b/src/shared/include/winact.h
@@ -7,7 +7,7 @@ struct mouse_packet {
uint16_t y;
uint16_t x;
enum mouse_button {LEFT, RIGHT, MIDDLE} which;
-};
+} __attribute__ ((__packed__));
struct window_action {
enum {
@@ -17,11 +17,16 @@ struct window_action {
FOCUS_ENTER,
FOCUS_LEAVE,
MOUSE_DOWN,
- MOUSE_UP
+ MOUSE_UP,
+ MOUSE_MOVE
} action_type;
union {
struct key_packet as_key;
struct mouse_packet as_mouse;
+ struct {
+ uint32_t y;
+ uint32_t x;
+ } moved_to;
};
} __attribute__ ((__packed__));