9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: rog@vitanuova.com
To: 9fans@cse.psu.edu
Subject: Re: [9fans] Evolving rio / GUI development
Date: Thu,  3 Mar 2005 03:47:19 +0000	[thread overview]
Message-ID: <4b8f2a947c17af3c8fe8ca001601c4ea@vitanuova.com> (raw)
In-Reply-To: <Pine.LNX.4.58.0502171034450.19065@enigma.lanl.gov>

> So, yes, rio is a fine and wonderful thing, but I don't buy it as the
> be-all and end-all of window managers.

winwatch helps, but i have to say, i do find available screen space
restrictive (and i'm running at 1400x1050). i run with acme
taking up all the horizontal space and 95% of the vertical
space, leaving a strip along the top for access to windows.
winwatch is useful.

> With multiple desktops, as much as I like rio, I find it easier to use
> flwm and swap around with CTRL-F[1234] etc.

so, like a fool, i thought "this'll be totally easy to do with rio; i'll just
place a filter onto its keyboard input that switches windows when it
sees a function key".

there sure are some sticky bits lurking under the surface in plan 9 if
you swim where others haven't swum before...

i kinda got it working, but it's not really usable.  here are some
gotchas i encountered along the way:

1) you can't make a full screen window in rio (1 pixel less in each dimension)
2) you can't make a borderless window in rio.
3) creation of a badly sized window fails silently.
4) there's no way of finding out the current available screen (*not* display)
	size when running rio in rio.
5) screenids run out quickly when you've got multiple clients creating screens
	(see /sys/src/libdraw/window.c:/25). most people don't notice
	because most windows are created by the same draw client.
	try:
		cpu
		for(i in `{seq 1 25}){window -m lens}
	perhaps screenid should probably be seeded somewhere random-ish
	(e.g. milliseconds^pid) and increase by prime multiples.

	at the least, the loop should at least detect that it's gone over the end
	and return an appropriate error message.
7) if you give rio an init command, it puts it in a new note group, so
	if you kill off the window within which rio is running, the
	command hangs around, thus:
8) managing recalcitrant groups of processes where the process names
	are all very similar is hard, particularly if you're running rio.
	very very easy to kill off your main window manager.
	there's no easy way to find out what processes are
	grouped together (perhaps ps could be able to print noteids, which
	helps a bit).

[if others consider any/all of the above to be bugs, i could
do patches, depending on what's considered the right way to fix
them.]

it's not worth posting my code.
conclusion: if you want to do this, modify rio itself!

'course there are other issues to solve too here, like:
if the plumber creates a new window, where should it appear?

i think rio can definitely be improved. that "sticky" menu has caused
me to unintentionally delete windows sooo many times, for one.



  parent reply	other threads:[~2005-03-03  3:47 UTC|newest]

Thread overview: 183+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-16 17:45 g01495
2005-02-16 17:56 ` Russ Cox
2005-02-16 19:15   ` Sergey Reva
2005-02-16 19:44     ` McLone
2005-02-17  5:50       ` Sergey Reva
2005-02-17  7:07         ` Kenji Okamoto
2005-02-17 17:15           ` Sergey Reva
2005-02-17 17:30             ` Tiit Lankots
2005-02-17 17:36               ` Ronald G. Minnich
2005-02-17 17:42                 ` boyd, rounin
2005-02-17 17:47                 ` Tiit Lankots
2005-02-17 17:53                   ` Russ Cox
2005-02-17 22:21                     ` [9fans] writing code rog
2005-02-17 22:29                       ` Ronald G. Minnich
2005-02-18  1:27                         ` Russ Cox
2005-02-18  4:48                           ` Ronald G. Minnich
2005-02-18  4:51                             ` lucio
2005-02-18 18:22                               ` rog
2005-02-18 19:05                                 ` Paul Lalonde
2005-02-18 19:21                                   ` rog
2005-02-20 18:14                                 ` [9fans] Second class citizenship (Was: writing code) Lucio De Re
2005-02-20 18:24                                   ` boyd, rounin
2005-02-20 18:33                                     ` Lucio De Re
2005-02-20 18:37                                       ` boyd, rounin
2005-02-20 20:36                                         ` Joel Salomon
2005-02-21  4:30                                         ` lucio
2005-02-21  7:03                                           ` Bruce Ellis
2005-02-21 16:59                                   ` rog
2005-02-22  3:59                                   ` Ronald G. Minnich
2005-02-22  4:34                                     ` lucio
2005-02-22  5:09                                       ` Ronald G. Minnich
2005-02-21  7:10                                 ` [9fans] writing code Kenji Okamoto
2005-02-21  7:26                                   ` Tiit Lankots
2005-02-21  7:48                                     ` Kenji Okamoto
2005-02-21  8:00                                       ` Tiit Lankots
2005-02-21 23:49                                       ` rog
2005-03-01  1:30                                         ` Kenji Okamoto
2005-02-21 10:08                                     ` Richard Miller
2005-02-21 10:09                                     ` Steve Simon
2005-02-18 21:09                               ` Ronald G. Minnich
2005-02-18  4:58                             ` Paul Lalonde
2005-02-18  5:12                               ` andrey mirtchovski
2005-02-18 14:57                                 ` Ronald G. Minnich
2005-02-18  5:01                           ` Ronald G. Minnich
2005-02-18 19:34                           ` Tim Newsham
2005-02-18 19:49                             ` David Leimbach
2005-02-18 19:59                               ` Christopher Nielsen
2005-02-18 21:36                                 ` rog
2005-02-18 22:14                                   ` Christopher Nielsen
2005-02-19  9:15                                 ` David Leimbach
2005-02-19 20:20                                   ` Bruce Ellis
2005-05-08 16:15                             ` Ralph Corderoy
2005-02-17 22:52                       ` Charles Forsyth
2005-02-17 23:12                         ` rog
2005-02-17 22:52                       ` Christopher Nielsen
2005-02-17 23:02                         ` boyd, rounin
2005-02-18  0:20                           ` jmk
2005-02-18  0:54                             ` boyd, rounin
2005-02-17 23:04                         ` Ronald G. Minnich
2005-02-17 23:07                           ` rog
2005-02-17 23:17                             ` Christopher Nielsen
2005-02-17 23:33                               ` rog
2005-02-17 23:42                                 ` Russ Cox
2005-02-18  0:07                       ` Steve Simon
2005-02-18  1:20                       ` Russ Cox
2005-02-18  9:53                         ` C H Forsyth
2005-02-18 12:17                           ` boyd, rounin
2005-02-18  4:21                       ` Russ Cox
2005-02-18 16:03                         ` rog
2005-02-18 16:04                         ` rog
2005-02-18 18:52                         ` rog
2005-02-18 19:01                           ` Russ Cox
     [not found]                             ` <53b78d28ce9ff18f6dc22cc280fc92ef@quintile.net>
2005-02-21 15:54                               ` Russ Cox
2005-02-18 19:50                           ` Charles Forsyth
2005-02-18 20:42                             ` rog
2005-02-18 20:32                               ` Charles Forsyth
2005-02-18 21:06                                 ` rog
2005-02-18 21:49                           ` McLone
2005-02-18 11:04                   ` [9fans] Evolving rio / GUI development Fco. J. Ballesteros
2005-02-18 12:29                     ` Tiit Lankots
2005-02-21  2:54                     ` Kenji Okamoto
2005-02-21  8:04                       ` Bruce Ellis
2005-02-21  8:24                         ` Tiit Lankots
2005-02-21 14:01                           ` Sergey Reva
2005-02-21 14:35                             ` Fco. J. Ballesteros
2005-02-22  1:16                               ` Kenji Okamoto
2005-02-22  2:04                                 ` Kenji Okamoto
2005-02-22  8:21                                 ` Matthias Teege
2005-02-21 14:36                             ` Gorka Guardiola
2005-02-21 15:52                               ` lucio
2005-02-22  0:37                                 ` Skip Tavakkolian
2005-02-21 23:52                                   ` Chesky Salomon
2005-02-22  2:27                                     ` Skip Tavakkolian
2005-02-22  4:12                               ` Ronald G. Minnich
2005-02-21 15:20                             ` Tiit Lankots
2005-02-21 16:01                             ` lucio
2005-02-22  8:07                               ` Matthias Teege
2005-02-22 13:52                                 ` Sergey Reva
2005-02-22 14:00                                   ` boyd, rounin
2005-02-22 14:10                                     ` David Tolpin
2005-02-22 14:15                                       ` Tiit Lankots
2005-02-22 15:25                                         ` David Tolpin
2005-02-22 17:47                                     ` lucio
2005-02-22 14:09                                   ` Charles Forsyth
2005-02-23  5:55                                     ` Martin C.Atkins
2005-02-22 10:26                               ` Gorka Guardiola
2005-02-22 17:33                                 ` lucio
2005-02-22 19:40                                   ` Skip Tavakkolian
2005-02-22 19:56                                     ` Bruce Ellis
2005-02-23  0:17                                     ` C H Forsyth
2005-02-23 10:29                                       ` fgergo
2005-02-23 11:22                                         ` Bruce Ellis
2005-02-23  3:47                                     ` lucio
2005-02-23 13:17                                       ` Rob Pike
2005-02-23 13:19                                         ` Gorka Guardiola
2005-02-23 13:39                                           ` Bruce Ellis
2005-02-23 13:43                                             ` Brantley Coile
2005-02-23 15:31                                             ` Ronald G. Minnich
2005-02-23 15:37                                               ` Rob Pike
2005-02-23 15:53                                                 ` Bruce Ellis
2005-02-23 16:06                                                   ` Ronald G. Minnich
2005-02-23 16:18                                                     ` Bruce Ellis
2005-02-23 17:37                                                 ` Skip Tavakkolian
2005-02-23 16:19                                             ` David Leimbach
2005-02-23 16:50                                               ` Richard Miller
2005-02-24  0:11                                           ` Dave Lukes
2005-02-22 23:47                                   ` Steve Simon
2005-02-23  0:21                                     ` Andrew Simmons
2005-02-23  3:59                                     ` lucio
2005-02-23  6:03                                     ` Martin C.Atkins
2005-02-21 10:37                       ` Fco. J. Ballesteros
2005-02-18  3:50                 ` Kenji Okamoto
2005-02-18  7:10                   ` Kenji Okamoto
2005-02-18  7:17                     ` Bruce Ellis
2005-02-18 13:07                     ` Rob Pike
2005-02-18 21:23                   ` McLone
2005-03-03  3:47                 ` rog [this message]
2005-03-03  5:43                   ` arisawa
2005-03-03 17:12                     ` Sam
2005-03-03 18:11                       ` rog
2005-03-03 18:27                         ` Russ Cox
2005-03-03 18:54                           ` g01495
2005-03-03 19:43                             ` Charles Forsyth
2005-03-04 15:25                           ` arisawa
2005-03-04 16:19                           ` rog
2005-03-07  2:22                             ` Kenji Okamoto
2005-03-04  4:39                         ` Scott Schwartz
2005-02-17 20:00               ` Sergey Reva
2005-02-17 20:17                 ` boyd, rounin
2005-02-17 20:43                   ` McLone
2005-02-17 20:19                 ` andrey mirtchovski
2005-02-17 20:56                 ` g01495
2005-02-17 21:02                   ` Rob Pike
2005-02-17 22:35                     ` McLone
2005-02-17 22:39                       ` Russ Cox
2005-02-17 22:00                   ` Ronald G. Minnich
2005-02-17 22:08                     ` rog
2005-02-20 21:04                     ` geoff
2005-02-18 12:15                 ` Tiit Lankots
2005-02-18 13:04                   ` Sergey Reva
2005-02-18 13:18                     ` Tiit Lankots
2005-02-18 15:50                       ` Sergey Reva
2005-02-18 16:01                         ` Tiit Lankots
2005-02-17 17:41         ` McLone
2005-02-17 17:58           ` andrey mirtchovski
2005-02-16 18:31 ` Steve Simon
2005-02-16 18:37   ` andrey mirtchovski
2005-02-16 19:04     ` McLone
2005-02-16 18:59 ` McLone the Great
2005-02-17  2:24 ` Kenji Okamoto
2005-02-17  0:15 YAMANASHI Takeshi
2005-02-22 18:06 Ben Huntsman
2005-02-22 18:12 ` George Gensure
2005-02-22 18:27 ` Brantley Coile
2005-02-23  6:25 ` Sergey Reva
2005-02-23  8:28   ` Kenji Okamoto
2005-02-23 14:34     ` andrey mirtchovski
2005-02-23 17:03       ` Sergey Reva
     [not found]   ` <b78d167375dbc912a20318b51cede65a@granite.cias.osakafu-u.ac.jp>
2005-02-23 12:09     ` Sergey Reva
2005-02-24  1:04       ` Kenji Okamoto
     [not found]       ` <0ff543a65f3c8fa9dab0a6a07def2f3a@granite.cias.osakafu-u.ac.jp>
2005-02-24  5:49         ` Sergey Reva
2005-02-23 15:21   ` Ronald G. Minnich
2005-02-22 18:16 Ben Huntsman

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=4b8f2a947c17af3c8fe8ca001601c4ea@vitanuova.com \
    --to=rog@vitanuova.com \
    --cc=9fans@cse.psu.edu \
    /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).