mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
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
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue