From: Amavect <amavect@gmail.com>
To: 9front@9front.org
Subject: rio: resize flash patch
Date: Sat, 21 Nov 2020 22:36:45 -0600 [thread overview]
Message-ID: <a6210412-fd81-9a68-dde2-4ba57fa371a8@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 260 bytes --]
All,
rio: don't redraw the text frame if a client is connected to /dev/mouse
When a window is resized, rio would redraw the text frame first before a
client program is able to redraw, resulting in a flash.
An if statement masks the redraw.
Thanks,
Amavect
[-- Attachment #2: rio.diff --]
[-- Type: text/plain, Size: 670 bytes --]
diff -r a7cc619b0017 sys/src/cmd/rio/wind.c
--- a/sys/src/cmd/rio/wind.c Tue Nov 17 18:37:38 2020 -0800
+++ b/sys/src/cmd/rio/wind.c Sat Nov 21 22:14:39 2020 -0600
@@ -102,12 +102,14 @@
wsetcols(w, 1);
w->maxtab = maxtab*stringwidth(w->font, "0");
r = insetrect(w->i->r, Selborder);
- draw(w->i, r, cols[BACK], nil, w->entire.min);
- wfill(w);
- wsetselect(w, w->q0, w->q1);
- wscrdraw(w);
wborder(w, Selborder);
- flushimage(display, 1);
+ if(!w->mouseopen){
+ draw(w->i, r, cols[BACK], nil, w->entire.min);
+ wfill(w);
+ wsetselect(w, w->q0, w->q1);
+ wscrdraw(w);
+ flushimage(display, 1);
+ }
wsetname(w);
w->topped = ++topped;
w->resized = TRUE;
next reply other threads:[~2020-11-22 4:37 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-22 4:36 Amavect [this message]
2020-11-22 5:33 ` [9front] " ori
2020-11-22 6:18 ` Amavect
2020-11-22 10:33 ` hiro
2020-11-22 16:57 ` cinap_lenrek
2020-11-22 17:10 ` Amavect
2020-11-24 23:35 ` ori
2020-11-25 0:21 ` Amavect
2020-11-25 9:38 ` hiro
2020-11-25 12:34 ` Ethan Gardener
[not found] ` <379baa18-a67f-de65-98b5-d7e08cbb5101@gmail.com>
[not found] ` <19260358-767b-4746-a3ff-4ce456a646c5@www.fastmail.com>
[not found] ` <CAFSF3XN_vLb89F=CCzXLkiQvYFFHYm72aSbc1NRkPBtDqwPzFA@mail.gmail.com>
2020-11-29 20:55 ` Ethan Gardener
2020-11-29 22:15 ` cinap_lenrek
2020-11-29 22:55 ` Stuart Morrow
2020-11-29 23:35 ` cinap_lenrek
2020-11-30 0:10 ` Stuart Morrow
2020-11-30 0:13 ` Stuart Morrow
2020-11-30 0:21 ` Alex Musolino
2020-11-30 1:48 ` ori
2020-11-30 2:17 ` Stanley Lieber
2020-11-30 9:19 ` hiro
2020-11-30 18:26 ` Ethan Gardener
2020-11-22 17:14 ` ori
2020-11-22 20:40 ` hiro
2020-11-22 21:18 ` ori
2020-12-03 2:17 ` magma698hfsp273p9f
2020-11-23 21:16 ` Ethan Gardener
2020-11-23 22:06 ` Amavect
2020-11-23 23:17 ` Ethan Gardener
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a6210412-fd81-9a68-dde2-4ba57fa371a8@gmail.com \
--to=amavect@gmail.com \
--cc=9front@9front.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).