User forums > Help
Code::blocks IDE focuses on mouse-over
Pecan:
--- Quote from: kkez on April 25, 2006, 07:19:32 pm ---That's strange, i did this: i opened notepad, opened C::B, set the focus to notepad, moved the mouse over the editor, typed something with the keyboard. Whatever i type goes inside notepad, even if the C::B editor seems to have the focus.
(Of course "Auto editor focus" is enabled)
--- End quote ---
Auto editor focus does *not* get the focus unless CB
already *has* the focus. It uses the wxWidgets internal
focus capability, *not* the os events.
It cannot automatically focus CB by itself.
Many OS's have the Xwindows "focus follows mouse" enabled.
In this case CB can get the focus from the OS when the mouse
is over CB. But no other way.
Also, may mice drivers implement the "mouse activates window"
behavior. Check your mouse configuration. Also make sure you're
not running TweakUI with mouse activation enabled.
Auto editor focus *cannot* activate an OS window that is not
already active.
thanks
pecan
royalbox:
Thanks for all the info, I've tried mandrav's suggestion to see if that helps, I'ts been OK so far.
--- Quote ---Many OS's have the Xwindows "focus follows mouse" enabled.
In this case CB can get the focus from the OS when the mouse
is over CB. But no other way.
--- End quote ---
I always find this sort of reply amusing, when someone tells you that the thing that is happening cannot happen.
Think it through for a moment pecan. If I had Xwindows "focus follows mouse" or "mouse activates window" enabled, I would be seeing the effect on all my apps wouldn't I. The problem I'm having is just with code::Blocks and has been there for a while in the nightly builds. So I won't check my mouse settings, but thanks anyway.
Pecan:
--- Quote from: Pecan on April 25, 2006, 10:45:34 pm ---Its true (that with Auto Editor focus) the cursor blinks, but the editor is NOT
active. You cant type into the editor, or scroll with the wheel or the mouse
unless you click (activate) the window.
--- End quote ---
Revision 2382: Added MSW test to honor mouse events/focus only
if main CB window has focus.
A special fix for the amused royalbox.
royalbox:
@Pecan
Lovely, thank you very much.
Navigation
[0] Message Index
[*] Previous page
Go to full version