From f40be8b5b6227775901a99946779661d0b4439e6 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 1 Nov 2020 12:35:00 +0100 Subject: Added files demo and needed functions --- apps/wm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'apps/wm.c') diff --git a/apps/wm.c b/apps/wm.c index b3cb953..05d497c 100644 --- a/apps/wm.c +++ b/apps/wm.c @@ -115,6 +115,8 @@ static void handle_keyboard(struct event_keyboard *event) if (special_keys_pressed & SHIFT_PRESSED) msg->ch = keymap->shift_map[event->scancode]; + else if (special_keys_pressed & ALT_PRESSED) + msg->ch = keymap->alt_map[event->scancode]; else msg->ch = keymap->map[event->scancode]; @@ -245,8 +247,7 @@ int main(int argc, char **argv) } switch (msg->type) { - case GFX_NEW_CONTEXT: - printf("New context for pid %d\n", msg->src); + case GFX_NEW_CONTEXT: { struct context *ctx = msg->data; int width = ctx->width; int height = ctx->height; @@ -260,6 +261,7 @@ int main(int argc, char **argv) redraw_all(); msg_send(msg->src, GFX_NEW_CONTEXT, ctx); break; + } case GFX_REDRAW: redraw_all(); break; -- cgit v1.2.3