Introduction
Introduction Statistics Contact Development Disclaimer Help
tremoved NET_ACTIVE_WINDOW handling - dwm - [fork] customized build of dwm, the…
git clone git://src.adamsgaard.dk/dwm
Log
Files
Refs
README
LICENSE
---
commit c225e1afc23e6862f9864bad3b7b11399dda36a1
parent 92e55c7c53cb808b584982ac8f6d69112d713fab
Author: Anselm R.Garbe <[email protected]>
Date: Tue, 8 Aug 2006 18:12:18 +0200
removed NET_ACTIVE_WINDOW handling
Diffstat:
M client.c | 5 -----
M dwm.h | 2 +-
M event.c | 13 -------------
M main.c | 1 -
4 files changed, 1 insertion(+), 20 deletions(-)
---
diff --git a/client.c b/client.c
t@@ -58,8 +58,6 @@ focus(Client *c)
drawtitle(c);
XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
XSync(dpy, False);
- XChangeProperty(dpy, root, netatom[NetActiveWindow], XA_WINDOW, 32,
- PropModeReplace, (unsigned char *)&c->win, 1);
while(XCheckMaskEvent(dpy, EnterWindowMask, &ev));
}
t@@ -461,9 +459,6 @@ unmanage(Client *c)
arrange(NULL);
if(sel)
focus(sel);
- else
- XChangeProperty(dpy, root, netatom[NetActiveWindow], XA_WINDOW…
- PropModeReplace, (unsigned char *)NULL, 1);
}
void
diff --git a/dwm.h b/dwm.h
t@@ -22,7 +22,7 @@ union Arg {
};
/* atoms */
-enum { NetSupported, NetWMName, NetActiveWindow, NetLast };
+enum { NetSupported, NetWMName, NetLast };
enum { WMProtocols, WMDelete, WMLast };
/* cursor */
diff --git a/event.c b/event.c
t@@ -146,18 +146,6 @@ buttonpress(XEvent *e)
}
static void
-clientmessage(XEvent *e)
-{
- Client *c;
- XClientMessageEvent *ev = &e->xclient;
-
- if(ev->message_type == netatom[NetActiveWindow]) {
- if((c = getclient(ev->window)) && c->tags[tsel])
- focus(c);
- }
-}
-
-static void
configurerequest(XEvent *e)
{
Client *c;
t@@ -351,7 +339,6 @@ unmapnotify(XEvent *e)
void (*handler[LASTEvent]) (XEvent *) = {
[ButtonPress] = buttonpress,
- [ClientMessage] = clientmessage,
[ConfigureRequest] = configurerequest,
[DestroyNotify] = destroynotify,
[EnterNotify] = enternotify,
diff --git a/main.c b/main.c
t@@ -201,7 +201,6 @@ main(int argc, char *argv[])
wmatom[WMDelete] = XInternAtom(dpy, "WM_DELETE_WINDOW", False);
netatom[NetSupported] = XInternAtom(dpy, "_NET_SUPPORTED", False);
netatom[NetWMName] = XInternAtom(dpy, "_NET_WM_NAME", False);
- netatom[NetActiveWindow] = XInternAtom(dpy, "_NET_ACTIVE_WINDOW", Fals…
XChangeProperty(dpy, root, netatom[NetSupported], XA_ATOM, 32,
PropModeReplace, (unsigned char *) netatom, NetLast);
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.