better fix to window flash bug on new -- also
happens on resize.
This commit is contained in:
parent
88cbb82295
commit
3e3817f7c8
2 changed files with 2 additions and 4 deletions
|
|
@ -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); /* */
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue