aboutsummaryrefslogtreecommitdiff
path: root/apps/wm.c
diff options
context:
space:
mode:
authorMarvin Borner2021-02-16 22:33:42 +0100
committerMarvin Borner2021-02-16 22:33:42 +0100
commit392b0ff1fcc52c189f131c71ea2a969d1b8c5690 (patch)
tree22cc9e27c09cb9887ca6972e07602070cda25451 /apps/wm.c
parent1287f9dfe987f0456e4fb0741385d5f0278ef53b (diff)
Okay!
Diffstat (limited to 'apps/wm.c')
-rw-r--r--apps/wm.c3
1 files changed, 3 insertions, 0 deletions
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;
}
};