changeset: 1345:169467e68992
tag: tip
user: Premysl Hruby <dfenze_AT_gmail.com>
date: Mon Aug 25 11:43:45 2008 +0200
files: dwm.c
description:
WM_NAME is builtin atom
diff -r ba02dda36aee -r 169467e68992 dwm.c
--- a/dwm.c Mon Aug 25 09:44:23 2008 +0100
+++ b/dwm.c Mon Aug 25 11:43:45 2008 +0200
@@ -60,7 +60,7 @@
enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */
enum { ColBorder, ColFG, ColBG, ColLast }; /* color */
enum { NetSupported, NetWMName, NetLast }; /* EWMH atoms */
-enum { WMProtocols, WMDelete, WMName, WMState, WMLast };/* default atoms */
+enum { WMProtocols, WMDelete, WMState, WMLast }; /* default atoms */
enum { ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle,
ClkClientWin, ClkRootWin, ClkLast }; /* clicks */
@@ -1326,7 +1326,6 @@
/* init atoms */
wmatom[WMProtocols] = XInternAtom(dpy, "WM_PROTOCOLS", False);
wmatom[WMDelete] = XInternAtom(dpy, "WM_DELETE_WINDOW", False);
- wmatom[WMName] = XInternAtom(dpy, "WM_NAME", False);
wmatom[WMState] = XInternAtom(dpy, "WM_STATE", False);
netatom[NetSupported] = XInternAtom(dpy, "_NET_SUPPORTED", False);
netatom[NetWMName] = XInternAtom(dpy, "_NET_WM_NAME", False);
@@ -1634,7 +1633,7 @@
void
updatetitle(Client *c) {
if(!gettextprop(c->win, netatom[NetWMName], c->name, sizeof c->name))
- gettextprop(c->win, wmatom[WMName], c->name, sizeof c->name);
+ gettextprop(c->win, XA_WM_NAME, c->name, sizeof c->name);
}
void
Received on Mon Aug 25 2008 - 09:44:01 UTC
This archive was generated by hypermail 2.2.0 : Mon Aug 25 2008 - 09:48:03 UTC