diff options
author | rsc <devnull@localhost> | 2004-04-06 15:20:01 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-04-06 15:20:01 +0000 |
commit | 3e3817f7c86658f60715dd93768eaf8285807985 (patch) | |
tree | 9c38df12cf87c52105483f5f0f41a4ea7484ab70 /src/cmd | |
parent | 88cbb82295cb82a6bd92bae221542896451fbd15 (diff) | |
download | plan9port-3e3817f7c86658f60715dd93768eaf8285807985.tar.gz plan9port-3e3817f7c86658f60715dd93768eaf8285807985.tar.bz2 plan9port-3e3817f7c86658f60715dd93768eaf8285807985.zip |
better fix to window flash bug on new -- also
happens on resize.
Diffstat (limited to 'src/cmd')
-rw-r--r-- | src/cmd/rio/grab.c | 2 | ||||
-rw-r--r-- | src/cmd/rio/manage.c | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/cmd/rio/grab.c b/src/cmd/rio/grab.c index 8838ed4e..6a402ef4 100644 --- a/src/cmd/rio/grab.c +++ b/src/cmd/rio/grab.c @@ -604,6 +604,8 @@ sweep(Client *c, int but, XButtonEvent *ignored) ScreenInfo *s; s = c->screen; + c->dx = 0; + c->dy = 0; status = grab(s->root, s->root, ButtonMask, s->sweep0, 0); if (status != GrabSuccess) { graberror("sweep", status); /* */ diff --git a/src/cmd/rio/manage.c b/src/cmd/rio/manage.c index d1211f80..115e0ef7 100644 --- a/src/cmd/rio/manage.c +++ b/src/cmd/rio/manage.c @@ -32,10 +32,6 @@ manage(Client *c, int mapped) c->is9term = 0; if(isNew){ c->is9term = strstr(c->class, "term") || strstr(c->class, "Term"); - if(c->is9term){ - c->dx = 0; - c->dy = 0; - } isNew = 0; } } |