diff options
author | Marvin Borner | 2020-11-01 12:35:00 +0100 |
---|---|---|
committer | Marvin Borner | 2020-11-01 12:35:00 +0100 |
commit | f40be8b5b6227775901a99946779661d0b4439e6 (patch) | |
tree | 34c28f138f4167de258ee18db44707aa4637a68d /apps/wm.c | |
parent | e0d3b1671b3f94657d70223b51285ed287c882df (diff) |
Added files demo and needed functions
Diffstat (limited to 'apps/wm.c')
-rw-r--r-- | apps/wm.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; |