summaryrefslogtreecommitdiff
path: root/app/cwm/xevents.c
diff options
context:
space:
mode:
authorTim van der Molen <tim@cvs.openbsd.org>2019-04-29 19:02:22 +0000
committerTim van der Molen <tim@cvs.openbsd.org>2019-04-29 19:02:22 +0000
commit97b916d1e2c5ed0d0cfcf11a3aec32cbb693f274 (patch)
tree60502def29cf2459ef62259b1c6a3f8cab06f2dc /app/cwm/xevents.c
parentf0b6c5e7ebf60a4354622f7672a023b096d1c303 (diff)
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 'app/cwm/xevents.c')
-rw-r--r--app/cwm/xevents.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/cwm/xevents.c b/app/cwm/xevents.c
index 80590beff..9b504bc72 100644
--- a/app/cwm/xevents.c
+++ b/app/cwm/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 {