From kfm-devel Tue Jul 16 15:38:10 2002 From: George Staikos Date: Tue, 16 Jul 2002 15:38:10 +0000 To: kfm-devel Subject: Re: Focus issues of a QXEmbed window X-MARC-Message: https://marc.info/?l=kfm-devel&m=102683395924464 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. -- George Staikos