--- dwm.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/dwm.c b/dwm.c index ff7e096f61fc..7c12796419ca 100644 --- a/dwm.c +++ b/dwm.c _AT_@ -60,7 +60,7 @@ /* enums */ enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */ enum { SchemeNorm, SchemeSel, SchemeLast }; /* color schemes */ -enum { NetSupported, NetWMName, NetWMState, +enum { NetSupported, NetSupportingWMCheck, NetWMName, NetWMState, NetWMFullscreen, NetActiveWindow, NetWMWindowType, NetWMWindowTypeDialog, NetClientList, NetLast }; /* EWMH atoms */ enum { WMProtocols, WMDelete, WMState, WMTakeFocus, WMLast }; /* default atoms */ _AT_@ -1574,6 +1574,7 @@ setup(void) wmatom[WMTakeFocus] = XInternAtom(dpy, "WM_TAKE_FOCUS", False); netatom[NetActiveWindow] = XInternAtom(dpy, "_NET_ACTIVE_WINDOW", False); netatom[NetSupported] = XInternAtom(dpy, "_NET_SUPPORTED", False); + netatom[NetSupportingWMCheck] = XInternAtom(dpy, "_NET_SUPPORTING_WM_CHECK", False); netatom[NetWMName] = XInternAtom(dpy, "_NET_WM_NAME", False); netatom[NetWMState] = XInternAtom(dpy, "_NET_WM_STATE", False); netatom[NetWMFullscreen] = XInternAtom(dpy, "_NET_WM_STATE_FULLSCREEN", False); _AT_@ -1806,6 +1807,8 @@ updatebars(void) .background_pixmap = ParentRelative, .event_mask = ButtonPressMask|ExposureMask }; + Atom utf8string; + utf8string = XInternAtom(dpy, "UTF8_STRING", False); for (m = mons; m; m = m->next) { if (m->barwin) continue; _AT_@ -1814,7 +1817,14 @@ updatebars(void) CWOverrideRedirect|CWBackPixmap|CWEventMask, &wa); XDefineCursor(dpy, m->barwin, cursor[CurNormal]->cursor); XMapRaised(dpy, m->barwin); + XChangeProperty(dpy, m->barwin, netatom[NetWMName], utf8string, + 8, PropModeReplace, (unsigned char *)"dwm", 3); } + /* it doesn't matter which bar we use for this, so just use the first one */ + XChangeProperty(dpy, root, netatom[NetSupportingWMCheck], XA_WINDOW, 32, + PropModeReplace, (unsigned char *)&mons->barwin, 1); + XChangeProperty(dpy, mons->barwin, netatom[NetSupportingWMCheck], XA_WINDOW, + 32, PropModeReplace, (unsigned char *)&mons->barwin, 1); } void -- 2.7.0 --cNdxnHkX5QqsyA0e--Received on Mon Sep 17 2001 - 00:00:00 CEST
This archive was generated by hypermail 2.3.0 : Mon Jan 25 2016 - 08:12:15 CET