help, Where to disable auto on focus when debug

Discussion about CodeLite development process and patches
fanhe0513
CodeLite Enthusiast
Posts: 39
Joined: Sat Aug 21, 2010 7:32 pm
Genuine User: Yes
IDE Question: c++
Contact:

help, Where to disable auto on focus when debug

Post by fanhe0513 »

I'm on ubuntu 10.04, and debug codelite with codelite.
There is some bugs with wxgtk on ubuntu 10.04, so if debuging in codelite, the codelite's auto on focus feature in debuging when hit a breakpoint will cause losing focus with ALL windows. And I can't control any windows!
It's a terrible issue, I must turn to tty and killall codelite and turn back.
I must disable the autofocus, where is the code?
Thanks!
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: help, Where to disable auto on focus when debug

Post by eranif »

manager.cpp:2355

Code: Select all

void Manager::UpdateGotControl ( const DebuggerEvent &e )
{
	//put us on top of the z-order window
	long curFlags = clMainFrame::Get()->GetWindowStyleFlag();
	clMainFrame::Get()->SetWindowStyleFlag(curFlags | wxSTAY_ON_TOP);
	clMainFrame::Get()->Raise();
	clMainFrame::Get()->SetWindowStyleFlag(curFlags);
	m_dbgCanInteract = true;
Eran
Make sure you have read the HOW TO POST thread
Post Reply