summaryrefslogtreecommitdiff
path: root/app/xterm/trace.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/xterm/trace.c')
-rw-r--r--app/xterm/trace.c20
1 files changed, 17 insertions, 3 deletions
diff --git a/app/xterm/trace.c b/app/xterm/trace.c
index 43311c4af..420d2ead5 100644
--- a/app/xterm/trace.c
+++ b/app/xterm/trace.c
@@ -1,4 +1,4 @@
-/* $XTermId: trace.c,v 1.140 2012/05/06 18:01:58 tom Exp $ */
+/* $XTermId: trace.c,v 1.142 2012/11/22 20:19:54 tom Exp $ */
/*
* Copyright 1997-2011,2012 by Thomas E. Dickey
@@ -375,6 +375,19 @@ visibleEventType(int type)
}
const char *
+visibleNotifyMode(int code)
+{
+ const char *result = "?";
+ switch (code) {
+ CASETYPE(NotifyNormal);
+ CASETYPE(NotifyGrab);
+ CASETYPE(NotifyUngrab);
+ CASETYPE(NotifyWhileGrabbed);
+ }
+ return result;
+}
+
+const char *
visibleNotifyDetail(int code)
{
const char *result = "?";
@@ -585,7 +598,7 @@ TraceFocus(Widget w, XEvent * ev)
{
XFocusChangeEvent *event = (XFocusChangeEvent *) ev;
TRACE(("\tdetail: %s\n", visibleNotifyDetail(event->detail)));
- TRACE(("\tmode: %d\n", event->mode));
+ TRACE(("\tmode: %s\n", visibleNotifyMode(event->mode)));
TRACE(("\twindow: %#lx\n", event->window));
}
break;
@@ -594,7 +607,7 @@ TraceFocus(Widget w, XEvent * ev)
{
XCrossingEvent *event = (XCrossingEvent *) ev;
TRACE(("\tdetail: %s\n", visibleNotifyDetail(event->detail)));
- TRACE(("\tmode: %d\n", event->mode));
+ TRACE(("\tmode: %s\n", visibleNotifyMode(event->mode)));
TRACE(("\twindow: %#lx\n", event->window));
TRACE(("\tfocus: %d\n", event->focus));
TRACE(("\troot: %#lx\n", event->root));
@@ -796,6 +809,7 @@ TraceXtermResources(void)
Trace("XTERM_RESOURCE settings:\n");
XRES_S(icon_geometry);
XRES_S(title);
+ XRES_S(icon_hint);
XRES_S(icon_name);
XRES_S(term_name);
XRES_S(tty_modes);