shithub: riscv

Download patch

ref: d8cd5d197de6756443c4a5aa109ff78656ebc200
parent: a0bc81f0bee79302482f8539a1b3090ddca387a1
author: cinap_lenrek <[email protected]>
date: Tue Aug 20 19:48:18 EDT 2013

rio: position keyboard window (-k) at the bottom of the screen

--- a/sys/src/cmd/rio/rio.c
+++ b/sys/src/cmd/rio/rio.c
@@ -223,8 +223,7 @@
 		if(kbdin){
 			kbdargv[2] = kbdin;
 			r = screen->r;
-			r.max.x = r.min.x+300;
-			r.max.y = r.min.y+80;
+			r.min.y = r.max.y-Dy(r)/3;
 			i = allocwindow(wscreen, r, Refbackup, DNofill);
 			wkeyboard = new(i, FALSE, scrolling, 0, nil, "/bin/rc", kbdargv);
 			if(wkeyboard == nil)