9front - general discussion about 9front
 help / color / mirror / Atom feed
* rio: resize flash patch
@ 2020-11-22  4:36 Amavect
  2020-11-22  5:33 ` [9front] " ori
  2020-11-23 21:16 ` Ethan Gardener
  0 siblings, 2 replies; 29+ messages in thread
From: Amavect @ 2020-11-22  4:36 UTC (permalink / raw)
  To: 9front

[-- 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;

^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2020-12-03  3:22 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-22  4:36 rio: resize flash patch Amavect
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-29 22:26                 ` umbraticus
2020-11-29 22:50                   ` 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

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).