[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    Re: Focus issues of a QXEmbed window
From:       Till Krech <till () snafu ! de>
Date:       2002-07-16 23:10:07
[Download RAW message or body]

On Tuesday 16 July 2002 17:38, George Staikos wrote:
> On Tuesday 16 July 2002 10:10, Koos Vriezen wrote:
> > Hi,
> > 
> > There is a problem with giving the focus to an embedded window with a
> > mouse click when a form element has the current focus.
> > 
> > I've attached a patch which fixes it. It does:
> > - do a XGrabButton on a embedded window when the mouse enters it and it
> > doesn't have the focus
> > - do a XUngrabButton when the mouse leaves the embedded window or when
> > it receives the focus
> > - put the focus to the embedded window when its clicked
> > 
> > This is similar behaviour as KWin does on its clients (damn, should have
> > looked at that earlier)
> 
> Looks good to me I think, but I haven't tested it yet.
I tested it. Cool. Koos is the hero of the day -- hmm... yesterday :)
I can't test the applet though on
http://chat.tapuz.co.il/newchat/main.asp?regUser=no&shower=1&room=30%20%C3%B4%C3%AC%C3%A5%C3%B1%20%C3%A0%C3%A9%C3%AB%C3%A5%C3%BA%C3%A9&nick=fasdfasd


It gets now a null pointer exception - but also without the patch . But this 
may be related to the URL change. Was a bit shorter last time, I checked.

A little testcase Applet with a textfield works fine. What else do we have to 
test ? QXEmbed is, apart from nspluginviewer,  also used for Kicker applets 
and Kasbar. 

Koos, thanks a lot for finding this,

regards, Till

-- 
SuSE Linux 8.0 (i386) 2.4.18-64GB-SMP
KDE: 3.0.6 (KDE 3.1 alpha1)
Qt: 3.0.6-snapshot-20020712


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic