On Sun, May 09, 2010 at 09:14:01AM -0400, Jorge Arellano Cid wrote:
On Sun, May 09, 2010 at 07:23:38AM +0200, Johannes Hofmann wrote:
Hi,
On Fri, May 07, 2010 at 11:45:02PM -0800, rogerx@sdf.org wrote:
I posted to the mailing list sometime ago concerning a bug with Dillo text entry form. After some time, the text entry box in google search box (or on other websites) would only allow certain keys to be typed (ie. s and g, most other keys simply ignored when typed in text entry boxes).
I can reproduce this now, however as you say, I think it just looses focus, so here no keys work at all until I refocus the text input.
I've finally resolved this, or hacked around it to live with it better.
Did you fix some code, or do you just refocus manually?
The bug occurs when a user of the DWM desktop moves Dillo from one virtual window to another virtual window using "Meta key + right mouse click" and the "right mouse click + virtual window number" to move a window to another virtual desktop within DWM.
Once moved to the other window, the text entry box will exhibit the above keyboard entry anomly. Basically, I think it's just loosing focus. The user can get back regular keyboard entry by using "Meta Key + Tab" to toggle focus from the previous desktop and then again to regain focus of the virtual desktop containing Dillo, and should then be able to type normally again. All keys should work.
Again, I think Dillo is just losing focus of the text entry box.. or something similar.
As other fltk2 apps don't show this behaviour we should be able to fix that in dillo, but I don't yet understand fully what is going on.
If this doesn't happen in other fltk2 apps, then the focus event (or similar) is correctly delivered by the WM and lost in the way by dillo's UI. I'd try to find what events a one-input widget-fltk2-program receives and how it handles it, and then see what happens in dillo.
PS: This can be done simply by adding a custom handle() method with some printfs and that calls the old handle().
I just committed a fix which works for me. Please give it a try and report any focus weirdness. Cheers, Johannes