aboutsummaryrefslogtreecommitdiff
path: root/apps/wm.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/wm.c')
-rw-r--r--apps/wm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/wm.c b/apps/wm.c
index 52c5932..1fca72e 100644
--- a/apps/wm.c
+++ b/apps/wm.c
@@ -369,6 +369,7 @@ static void handle_event_mouse(struct event_mouse *event)
msg.header.state = MSG_GO_ON;
msg.id = win->id;
msg.pos = vec2_sub(mouse.pos, win->pos);
+ msg.bits.click = event->but1;
msg_send(win->client.pid, GUI_MOUSE, &msg, sizeof(msg));
}