From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <62328632c05339f73df807068c511920@rei2.9hal> Date: Wed, 19 Dec 2012 14:02:21 +0100 From: cinap_lenrek@gmx.de To: 9fans@9fans.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] Good sample GUI code (window creation, management, Topicbox-Message-UUID: f7e899aa-ead7-11e9-9d60-3106f5b1d025 the trick is just mounting $wsys and optionally supply some window attributes in the mount spec. see rio(1) and /sys/src/libdraw/newwindow.c after that, you have the new window mounted on /dev and a following initdraw() will pick it up. if you want to maintain multiple windows for your program, its better to mount each window somewhere else and supply windir. its unusual for plan9 programs to make ther own windows tho. instead, its more common to create windows/layers inside your screen (like sam or acme). -- cinap