Focus issues of a QXEmbed window

George Staikos staikos at kde.org
Tue Jul 16 16:38:10 BST 2002


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





More information about the kfm-devel mailing list