From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <3a6d3a5410f853ec69856464cde840a5@gmx.de> References: <3a6d3a5410f853ec69856464cde840a5@gmx.de> From: Sergey Zhilkin Date: Thu, 30 Apr 2009 14:07:34 +0400 Message-ID: <126a2f7d0904300307n318aa6a2mbbdc17995722abe9@mail.gmail.com> To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=0016367f9b1494daf20468c2dee8 Subject: Re: [9fans] rio in rio and ghost windows. Topicbox-Message-UUID: f47f4b22-ead4-11e9-9d60-3106f5b1d025 --0016367f9b1494daf20468c2dee8 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable can't reproduce :( Native system on hp compaq workstation. 2009/4/28 > 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 =3D allocimage(display, r, screen->chan, 0, > DWhite); > else > im =3D allocwindow(wscreen, r, Refbackup, DWhite); > > to this: > > if(ishidden){ > im =3D allocimage(display, r, screen->chan, 0, > DWhite); > r =3D ZR; > }else > im =3D allocwindow(wscreen, r, Refbackup, DWhite); > > > can anyone confirm this and may make a patch? > > -- > cinap > > > --=20 =D0=A1 =D0=BD=D0=B0=D0=B8=D0=BB=D1=83=D1=87=D1=88=D0=B8=D0=BC=D0=B8 =D0=BF= =D0=BE=D0=B6=D0=B5=D0=BB=D0=B0=D0=BD=D0=B8=D1=8F=D0=BC=D0=B8 =D0=96=D0=B8=D0=BB=D0=BA=D0=B8=D0=BD =D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B9 With best regards Zhilkin Sergey --0016367f9b1494daf20468c2dee8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable can't reproduce :( Native system on hp compaq workstation.

2009/4/28 <cinap_lenrek@gmx.de>
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:
...
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if(ishidden)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0im =3D allocimage(display, r, screen->chan, 0, DWhite);
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0else
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0im =3D allocwindow(wscreen, r, Refbackup, DWhite);

to this:

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if(ishidden){
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0im =3D allocimage(display, r, screen->chan, 0, DWhite);
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0r =3D ZR;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0}else
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0im =3D allocwindow(wscreen, r, Refbackup, DWhite);


can anyone confirm this and may make a patch?

--
cinap





--
=D0=A1 =D0=BD=D0= =B0=D0=B8=D0=BB=D1=83=D1=87=D1=88=D0=B8=D0=BC=D0=B8 =D0=BF=D0=BE=D0=B6=D0= =B5=D0=BB=D0=B0=D0=BD=D0=B8=D1=8F=D0=BC=D0=B8
=D0=96=D0=B8=D0=BB=D0=BA= =D0=B8=D0=BD =D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B9
With best regards
Z= hilkin Sergey
--0016367f9b1494daf20468c2dee8--