From f0808f6663bbb2900d20cbae70dee0df43559745 Mon Sep 17 00:00:00 2001 From: tim Date: Mon, 29 Apr 2019 19:02:21 +0000 Subject: 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@ --- xevents.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'xevents.c') diff --git a/xevents.c b/xevents.c index 80590be..9b504bc 100644 --- a/xevents.c +++ b/xevents.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: xevents.c,v 1.146 2019/03/11 15:25:46 okan Exp $ + * $OpenBSD: xevents.c,v 1.147 2019/04/29 19:02:21 tim Exp $ */ /* @@ -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 { -- cgit v1.2.3-2-gb3c3