dotgnu-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [DotGNU]Odd Leave/Enter behaviour on mouse clicks


From: Gopal V
Subject: Re: [DotGNU]Odd Leave/Enter behaviour on mouse clicks
Date: Wed, 25 Jun 2003 01:34:56 +0530
User-agent: Mutt/1.2.5i

If memory serves me right, Rhys Weatherley wrote:
> There's no easy way of working around this in the Xsharp code without running 
> the risk of missing real Enter/Leave events.  None of the other toolkits that 
> I looked at (Xt, Gtk, Qt) performed any special handling that I could see.

#flubox, Act 1 :-)

Jun 24 18:59:26 <fluxgen>       t3rmin4t0r: 
http://savannah.gnu.org/cgi-bin/viewcvs/dotgnu-pnet/pnetlib/Xsharp/GrabWindow.cs?rev=1.2&content-type=text/vnd.viewcvs-markup
Jun 24 18:59:36 <t3rmin4t0r>    yes ?
Jun 24 18:59:38 <fluxgen>       t3rmin4t0r: do you use an instance of this one?
Jun 24 18:59:58 <t3rmin4t0r>    wait a sec
Jun 24 19:00:14 <t3rmin4t0r>    I think so
Jun 24 19:00:24 <t3rmin4t0r>    grabWindow=new GrabWindow(rootWindow);
Jun 24 19:00:31 <fluxgen>       then check // Change the "lastEntered" window.
Jun 24 19:00:31 *fluxgen*       private void ChangeEntered(PopupWindow popup)
Jun 24 19:00:35 <fluxgen>       private void ChangeEntered(PopupWindow popup)
Jun 24 19:00:56 <fluxgen>       which is called from DispatchEvent ...in 
ButtonPress..
Jun 24 19:00:59 <t3rmin4t0r>    ouch ...
Jun 24 19:01:07 <fluxgen>       and sends fake leave/enter events
Jun 24 19:01:18 <fluxgen>       dont know why ...
Jun 24 19:01:32 <Blackb|rd>     eeek. no it is *not* working
Jun 24 19:01:50 <fluxgen>       you could try to comment out 
ChangeEntered(popup); in internal override void DispatchEvent(ref XEvent 
xevent)...
Jun 24 19:01:59 <t3rmin4t0r>    but before that , can I dcc you the effect I 
have when you click in the black rect inside xev ?
Jun 24 19:02:08 <t3rmin4t0r>    in that case also I'm getting a LeaveNotify ...
....
Jun 24 19:15:48 <t3rmin4t0r>    and it works out right ...
Jun 24 19:16:20 <t3rmin4t0r>    but xev still gives a LeaveNotify
Jun 24 19:17:08 <t3rmin4t0r>    fluxgen: thanks for tracking it down for me ....
Jun 24 19:17:21 <fluxgen>       np

> I think we'll just have to put this down to "install a different window 
> manager if it bugs you; otherwise live with it". :-)

Eventhough that sounds too attractive for me ... I like fluxbox a bit
too much :-)

So how about the attached patch ? ... since that should not remove real
events ?.. So now it seems to work ok . 

Gopal
-- 
The difference between insanity and genius is measured by success

Attachment: patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]