forked from 0ad/0ad
Fixes Atlas stealing focus on OS X, based on patch by mk12. Fixes #1317.
This was SVN commit r11693.
This commit is contained in:
parent
13e5c56015
commit
022fc4c47c
@ -214,8 +214,8 @@ private:
|
||||
// feels like a fairly natural solution to me, since I can use
|
||||
// e.g. brush-editing controls normally, and then move the mouse to
|
||||
// see the brush outline and magically get given back full control
|
||||
// of the camera.
|
||||
if (evt.Moving())
|
||||
// of the camera. Only do that when part of our window has focus.
|
||||
if (evt.Moving() && wxWindow::FindFocus())
|
||||
SetFocus();
|
||||
|
||||
if (m_ScenarioEditor.GetToolManager().GetCurrentTool()->OnMouse(evt))
|
||||
|
Loading…
Reference in New Issue
Block a user