From mboxrd@z Thu Jan 1 00:00:00 1970 Message-Id: <200512042300.jB4N0eH08548@zamenhof.cs.utwente.nl> To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: p9p open apps in same window (Re: [9fans] 9con in Madrid?) In-reply-to: Your message of "Fri, 02 Dec 2005 21:48:09 +0100." <200512022048.jB2Km9W02755@zamenhof.cs.utwente.nl> References: <2186708a75eab646a7016140a1f91784@plan9.bell-labs.com> <439096F7.2020900@lanl.gov> <4390AE03.9060606@village.com> <50D14CA6-11E3-4300-9F84-F92EF42B87D2@telus.net> <200512022048.jB2Km9W02755@zamenhof.cs.utwente.nl> From: Axel Belinfante MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <8542.1133737240.1@zamenhof.cs.utwente.nl.cs.utwente.nl> Date: Mon, 5 Dec 2005 00:00:40 +0100 Topicbox-Message-UUID: b7e9e220-ead0-11e9-9d60-3106f5b1d025 To keep up the spirit of answering one's own emails: > I was thinking along a different angle though: > my idea was to do it in rio, hoping I would somehow be able > to figure out from which window a new app was started > (probably there is env var WINDOWID or some such) Thinking (just a bit) more... the env var is irrelevant since with above approach rio will never see it anyway - rio will only see that a new window appears. Rio does know which window is currently active, and thus it might just decide to replace (overlay) the 'body' of that one, if it is an 9term (it can recognize those using X properties, I'm pretty sure) Something like plan9's window would then be useful to explicitly create new windows (9terms or directly apps) (dunno if it's already there) That should also take care of windows that are programmatically created on startup. There might be (will be?) races though - it will take some time from the start of a program till its window is created (appears) which may or may not mess with above assumption that the active window is the one to overlay. oh well... so far it is nothing more than an idea anyway (AFAIK) Axel. > and then hide the original thing, and put the new > window in its place, hoping this would be general > enough to work with 'any' X app.