9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] rio in rio and ghost windows.
@ 2009-04-27 23:27 cinap_lenrek
  2009-04-28  0:48 ` erik quanstrom
  2009-04-30 10:07 ` Sergey Zhilkin
  0 siblings, 2 replies; 4+ messages in thread
From: cinap_lenrek @ 2009-04-27 23:27 UTC (permalink / raw)
  To: 9fans

Test case:

draw a window... run rio

inside that thing draw another window and hide it.

now rezise the rio window.

now, the region where the window was seems to eat
mouse events, but the window is hidden.

Fix:

in rio.c:^resized, change this:
...
		if(ishidden)
			im = allocimage(display, r, screen->chan, 0, DWhite);
		else
			im = allocwindow(wscreen, r, Refbackup, DWhite);

to this:

		if(ishidden){
			im = allocimage(display, r, screen->chan, 0, DWhite);
			r = ZR;
		}else
			im = allocwindow(wscreen, r, Refbackup, DWhite);


can anyone confirm this and may make a patch?

--
cinap




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

end of thread, other threads:[~2009-04-30 21:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-27 23:27 [9fans] rio in rio and ghost windows cinap_lenrek
2009-04-28  0:48 ` erik quanstrom
2009-04-30 10:07 ` Sergey Zhilkin
2009-04-30 21:28   ` cinap_lenrek

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