From kde-core-devel Wed Nov 20 23:24:33 2002 From: Charles Samuels Date: Wed, 20 Nov 2002 23:24:33 +0000 To: kde-core-devel Subject: Re: QXEmbed grabbing mouse X-MARC-Message: https://marc.info/?l=kde-core-devel&m=103783476411649 I see. But why is it necessary to have a mouse grab, specifically, can't you set and release focus without a grab? (P.S., I worked around it by doing an X ungrab call in the mouse click handler) On Wednesday 20 November 2002 02:46 pm, Koos Vriezen wrote: > Hi, > > I don't have write access on kde-core-devel but I added the mouse grabbing > stuff. It was added so that QXEmbed is notified that there was a mouse > click on the embedded application and set the focus accordantly. > Before the patch, the host app was unaware of this. It resulted in khtml > with a Java applet inside a HTML page, both having a text box, that both > text boxes had blinking cursors. It was then impossible to type text in > the Java text box. > I did test it with other apps using QXEmbed like kicker and > nspluginviewer. Didn't find any problems. Patch was also discussed on > kfm-devel. > I don't have a workaround for you, but now the QXEmbed widget is aware of > mouse clicks of the embedded app which it didn't have before. (Maybe > override QXEmbed::x11Event(..) and check ButtonPress/ButtonRelease?) > > Regards, > > Koos Vriezen