-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lockup when typing in address line #5
Comments
Please mention your WM. This has never happened to me in JWM or FLWM, In any case, this bug is about window focus, and either a bug of your |
Metacity on Ubuntu 14.04. But I don't think it's a focus/WM problem. I have to correct myself: "the address line stays in place" is not true, I meant the dropdown window, but even that seems to be normal. What really locks up is the keyboard. When the "lockup" occurs the effect is, that keyboard handling is dead within whole fifth (no page/up down, ...) but otherwise everything is working. Even the address line is accepting clicks, changes focus and updates to new addresses when selected from the dropdown, but doesn't accept keystrokes. It has definitely to to with the dropdown menu updating when typing. I had most success when typing the character 'w', because it has the maximum matches (every entry has 'www') in the dropdown. The "lockup" always occurs when the last 'w' of www is typed (but the adress line still show 'ww') or when using backspace (with autorepeat) in a long 'wwwwww..' line when 'www' is reached. It must be a timing problem, because typing slowly doesn't lead to the effect. As mentioned it is easier when using autorepeat, but it also occurs when typing quickly. |
I still believe it's focus/WM related, because that's what I saw on After updating the dropdown, the code moves the focus back to the Still, I cannot reproduce it here on JWM, the WM I mainly use. I have If you'd like to play with it, the place is fl_browser_input.cpp:popup |
Pressing esc has no effect in this situation. |
Ok, I guess you are right - it's either something with WM or FLTK. Changing in fl_browser_input.cpp constructor win->set_non_modal() to win->set_override(), which keeps the window from interacting with the WM, fixes the problem. And it seems to have no other unwanted effect. |
I'm afraid I can't apply that as a general fix, as it does come with |
What about set_tooltip_window() ? Seems also to fix it and has the perhaps not so unpleasant side effect that it closes, when the browser window is moved. |
Oh, I think set_menu_window() is even more appropriate! |
Neither of those would work. Both of them have the issue that they can Native FLTK tooltips and menus are either override or modal in addition |
Last try: set_non_modal(); Seems to work too. |
Yeah, that doesn't regress things here. Please test current git. |
Yes, that fixes it - I played for some time now and the lockup doesn't occur any more. Thanks for putting it in. |
Thanks, closing. |
When typing in the address line sometimes when the list of last addresses appears/is updated it comes to a sort of lockup as no more characters are accepted and the address line stays in place when the browser window is moved.
It happens more frequently when deliberately holding down a key and the autorepeat starts.
The text was updated successfully, but these errors were encountered: