Skip to content

Commit

Permalink
Release mouse on alt+tab
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro-Beirao committed Jan 2, 2024
1 parent 418f4e6 commit b7fb657
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MapEditor/UI/MapCanvas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -528,8 +528,8 @@ void MapCanvas::onFocus(wxFocusEvent& e)
if (e.GetEventType() == wxEVT_SET_FOCUS)
{
if (context_->editMode() == Mode::Visual)
lockMouse(true);
context_->lockMouse(true);
}
else if (e.GetEventType() == wxEVT_KILL_FOCUS)
lockMouse(false);
context_->lockMouse(false);
}

0 comments on commit b7fb657

Please # to comment.