Page 1 of 1

help, Where to disable auto on focus when debug

Posted: Thu Jan 27, 2011 9:45 pm
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!

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

Posted: Thu Jan 27, 2011 9:56 pm
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