Skip to content

Commit

Permalink
Fix dock hint being shown on hidden floating property notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Nov 17, 2022
1 parent a7ef37a commit a14c7ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radiant/ui/mainframe/AuiManager.cpp
Expand Up @@ -34,7 +34,7 @@ void AuiManager::DockPanelToNotebook(AuiFloatingFrame* frame)
bool AuiManager::MouseCursorIsHoveringNotebook()
{
auto point = wxGetMousePosition();
return _notebook && _notebook->IsShown() && _notebook->GetScreenRect().Contains(point);
return _notebook && _notebook->IsShownOnScreen() && _notebook->GetScreenRect().Contains(point);
}

bool AuiManager::CanDockPanel(const wxAuiPaneInfo& p)
Expand Down

0 comments on commit a14c7ab

Please sign in to comment.