aboutsummaryrefslogtreecommitdiff
path: root/apps/wm.c
diff options
context:
space:
mode:
authorMarvin Borner2020-11-01 12:35:00 +0100
committerMarvin Borner2020-11-01 12:35:00 +0100
commitf40be8b5b6227775901a99946779661d0b4439e6 (patch)
tree34c28f138f4167de258ee18db44707aa4637a68d /apps/wm.c
parente0d3b1671b3f94657d70223b51285ed287c882df (diff)
Added files demo and needed functions
Diffstat (limited to 'apps/wm.c')
-rw-r--r--apps/wm.c6
1 files changed, 4 insertions, 2 deletions
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;