aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortim2019-04-29 19:02:21 +0000
committertim2019-04-29 19:02:21 +0000
commitf0808f6663bbb2900d20cbae70dee0df43559745 (patch)
tree34f20c61b9f1da6b7eb3f3273791fd867fc18060
parent7f085a1788f40d1aef4ac5cd1880eb0c8f0ac66f (diff)
downloadcwm-f0808f6663bbb2900d20cbae70dee0df43559745.tar.gz
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@
Diffstat (limited to '')
-rw-r--r--xevents.c5
1 files changed, 3 insertions, 2 deletions
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 {