commit 72972121b0eb033a667a9058ae6fa444eda2d1f1
parent 27858a3917ea4088d9d7687c38ae37e014d5e515
Author: Kris Maglione <jg@suckless.org>
Date: Thu, 28 Feb 2008 17:31:32 -0500
Fix wmii_hack bug. Fix urgency bug when closing urgent client.
Diffstat:
4 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/cmd/wmii/client.c b/cmd/wmii/client.c
@@ -244,6 +244,7 @@ client_destroy(Client *c) {
bool hide;
unmapwin(c->framewin);
+ client_seturgent(c, false, UrgClient);
for(tc=&client; *tc; tc=&tc[0]->next)
if(*tc == c) {
@@ -281,7 +282,6 @@ client_destroy(Client *c) {
ewmh_destroyclient(c);
group_remove(c);
- client_seturgent(c, false, UrgClient);
event("DestroyClient %C\n", c);
flushenterevents();
diff --git a/libwmii_hack/hack.c b/libwmii_hack/hack.c
@@ -19,7 +19,7 @@ enum {
static void* xlib;
-static Window lastwin;
+static long lastwin;
static long transient;
static Atom types[32];
static long ntypes;
@@ -112,10 +112,8 @@ setprops(Display *d, Window w) {
else if(time(0) > nsec + Timeout)
return;
- if(lastwin) {
- free(tags);
- getprop_textlist(d, lastwin, "_WMII_TAGS", &tags);
- }
+ if(lastwin)
+ changeprop_long(d, lastwin, "_WMII_AFFINE", "WINDOW", &lastwin, 1);
lastwin = w;
if(transient)
diff --git a/libwmii_hack/x11.c b/libwmii_hack/x11.c
@@ -172,6 +172,7 @@ strlistdup(char *list[], int n) {
return p;
}
+#if 0
static int
getprop_textlist(Display *display, Window w, char *name, char **ret[]) {
XTextProperty prop;
@@ -190,6 +191,7 @@ getprop_textlist(Display *display, Window w, char *name, char **ret[]) {
}
return n;
}
+#endif
#if 0
static char*
diff --git a/libwmii_hack/x11.h b/libwmii_hack/x11.h
@@ -12,7 +12,7 @@ static void changeproperty(Display*, Window, char*, char*, int width, uchar*, in
/* static void freestringlist(char**); */
static ulong getprop_long(Display*, Window, char*, char*, ulong, long**, ulong);
/* static char* getprop_string(Display*, Window, char*); */
-static int getprop_textlist(Display*, Window, char*, char**[]);
+/* static int getprop_textlist(Display*, Window, char*, char**[]); */
/* static ulong getproperty(Display*, Window, char*, char*, Atom*, ulong, uchar**, ulong); */
static Atom xatom(Display*, char*);