[hackers] [dwm] applied anudots [un]ban repair patch

From: Anselm R. Garbe <arg_AT_suckless.org>
Date: Mon Jun 04 11:38:38 2007

changeset: 914:dad36921af06
tag: tip
user: Anselm R. Garbe <arg_AT_suckless.org>
date: Mon Jun 04 11:37:33 2007 +0200
summary: applied anudots [un]ban repair patch

diff -r d9c7c686d4dc -r dad36921af06 client.c
--- a/client.c Fri Jun 01 12:11:25 2007 +0200
+++ b/client.c Mon Jun 04 11:37:33 2007 +0200
@@ -216,8 +216,7 @@ manage(Window w, XWindowAttributes *wa)
                 c->isfloating = (rettrans == Success) || c->isfixed;
         attach(c);
         attachstack(c);
- c->isbanned = True;
- XMoveWindow(dpy, w, c->x + 2 * sw, c->y);
+ ban(c);
         XMapWindow(dpy, w);
         setclientstate(c, NormalState);
         focus(c);
diff -r d9c7c686d4dc -r dad36921af06 layout.c
--- a/layout.c Fri Jun 01 12:11:25 2007 +0200
+++ b/layout.c Mon Jun 04 11:37:33 2007 +0200
@@ -88,9 +88,7 @@ floating(void) {
 
         for(c = clients; c; c = c->next)
                 if(isvisible(c)) {
- if(c->isbanned)
- XMoveWindow(dpy, c->win, c->x, c->y);
- c->isbanned = False;
+ unban(c);
                         resize(c, c->x, c->y, c->w, c->h, True);
                 }
                 else
diff -r d9c7c686d4dc -r dad36921af06 main.c
--- a/main.c Fri Jun 01 12:11:25 2007 +0200
+++ b/main.c Mon Jun 04 11:37:33 2007 +0200
@@ -38,8 +38,7 @@ cleanup(void) {
 cleanup(void) {
         close(STDIN_FILENO);
         while(stack) {
- if(stack->isbanned)
- XMoveWindow(dpy, stack->win, stack->x, stack->y);
+ unban(stack);
                 unmanage(stack);
         }
         if(dc.font.set)
Received on Mon Jun 04 2007 - 11:38:38 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:57:15 UTC