summary refs log tree commit diff
diff options
context:
space:
mode:
authortim <tim>2019-04-29 19:02:21 +0000
committertim <tim>2019-04-29 19:02:21 +0000
commit3f1caab46a090ee48879bd5de43774dd285f2cbb (patch)
tree7a54520ccbc00a07fbd2ee3fee008fbae01924a9
parent9a7528f5b99bd234f724aa229cbf75fb6a813282 (diff)
downloadcwm-3f1caab46a090ee48879bd5de43774dd285f2cbb.tar.gz
cwm-3f1caab46a090ee48879bd5de43774dd285f2cbb.tar.xz
cwm-3f1caab46a090ee48879bd5de43774dd285f2cbb.zip
Handle _NET_WM_NAME changes.
This fixes the problem where cwm's window menu wouldn't show Firefox's current
window title if it contains non-ASCII characters.

OK okan@
-rw-r--r--xevents.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xevents.c b/xevents.c
index 4dfef72..696ff32 100644
--- a/xevents.c
+++ b/xevents.c
@@ -207,7 +207,8 @@ xev_handle_propertynotify(XEvent *ee)
 				group_movetogroup(cc, cc->gc->num);
 			break;
 		default:
-			/* do nothing */
+			if (e->atom == ewmh[_NET_WM_NAME])
+				client_setname(cc);
 			break;
 		}
 	} else {