Fixes Atlas stealing focus on OS X, based on patch by mk12. Fixes #1317.

This was SVN commit r11693.
This commit is contained in:
historic_bruno 2012-04-29 02:04:59 +00:00
parent 13e5c56015
commit 022fc4c47c

View File

@ -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))