summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-11-10 15:23:52 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-11-10 15:28:27 +1000
commitc47a4ddf50304a43474211aa40532c16e6f39669 (patch)
treea189607c89029ad7ae9594ac5fb186e48178386c
parent61484b03e3c8f47c7a7306fac8e565630025d4fb (diff)
Print the windowname as unknown if it's not set correctly
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--multitouch.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/multitouch.c b/multitouch.c
index 6c187ce..7adf6f0 100644
--- a/multitouch.c
+++ b/multitouch.c
@@ -268,6 +268,13 @@ static void print_event(struct multitouch *mt, XIDeviceEvent* event)
windowname = "whitebar_os";
else if (event->event == mt->blackbar_os)
windowname = "blackbar_os";
+ else if (event->event == mt->win)
+ windowname = "window";
+ else
+ {
+ error("Invalid window %#lx\n", event->event);
+ windowname = "UNKNOWN WINDOW";
+ }
msg("\ton %s\n", windowname);
if (event->flags & XITouchPendingEnd)