better fix to window flash bug on new -- also

happens on resize.
This commit is contained in:
rsc 2004-04-06 15:20:01 +00:00
parent 88cbb82295
commit 3e3817f7c8
2 changed files with 2 additions and 4 deletions

View file

@ -604,6 +604,8 @@ sweep(Client *c, int but, XButtonEvent *ignored)
ScreenInfo *s; ScreenInfo *s;
s = c->screen; s = c->screen;
c->dx = 0;
c->dy = 0;
status = grab(s->root, s->root, ButtonMask, s->sweep0, 0); status = grab(s->root, s->root, ButtonMask, s->sweep0, 0);
if (status != GrabSuccess) { if (status != GrabSuccess) {
graberror("sweep", status); /* */ graberror("sweep", status); /* */

View file

@ -32,10 +32,6 @@ manage(Client *c, int mapped)
c->is9term = 0; c->is9term = 0;
if(isNew){ if(isNew){
c->is9term = strstr(c->class, "term") || strstr(c->class, "Term"); c->is9term = strstr(c->class, "term") || strstr(c->class, "Term");
if(c->is9term){
c->dx = 0;
c->dy = 0;
}
isNew = 0; isNew = 0;
} }
} }