From 392b0ff1fcc52c189f131c71ea2a969d1b8c5690 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 16 Feb 2021 22:33:42 +0100 Subject: Okay! --- apps/exec.c | 1 + apps/wm.c | 3 +++ 2 files changed, 4 insertions(+) (limited to 'apps') diff --git a/apps/exec.c b/apps/exec.c index 8e3bf95..ae7ca35 100644 --- a/apps/exec.c +++ b/apps/exec.c @@ -46,6 +46,7 @@ void on_submit(struct gui_event_keyboard *event, struct element *elem) int main() { + log("exec loaded\n"); struct element *root = gui_init("Exec", WIDTH, HEIGHT, COLOR_BLACK); struct element *input = gui_add_text_input(root, 0, 0, 100, FONT_32, COLOR_WHITE, COLOR_BLACK); diff --git a/apps/wm.c b/apps/wm.c index bcb3e71..3c952c8 100644 --- a/apps/wm.c +++ b/apps/wm.c @@ -311,6 +311,8 @@ int main(int argc, char **argv) err(1, "POLL ERROR!\n"); } + assert(msg.magic == MSG_MAGIC); + switch (msg.type) { case GFX_NEW_CONTEXT: { struct context *ctx = msg.data; @@ -340,6 +342,7 @@ int main(int argc, char **argv) redraw_focused(); break; default: + log("Unknown WM request %d\n", msg.type); break; } }; -- cgit v1.2.3