From dd9ef6466868208d51cab2c02b827dafb6a126fa Mon Sep 17 00:00:00 2001 From: David Capello Date: Sat, 15 May 2021 14:37:11 -0300 Subject: [PATCH] Hot region is specified in screen coordinates for PopupWindows --- src/app/ui/toolbar.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/ui/toolbar.cpp b/src/app/ui/toolbar.cpp index c819c6bd2..32824b27f 100644 --- a/src/app/ui/toolbar.cpp +++ b/src/app/ui/toolbar.cpp @@ -1,5 +1,5 @@ // Aseprite -// Copyright (C) 2018-2020 Igara Studio S.A. +// Copyright (C) 2018-2021 Igara Studio S.A. // Copyright (C) 2001-2018 David Capello // // This program is distributed under the terms of @@ -425,7 +425,7 @@ void ToolBar::openPopupWindow(int group_index, ToolGroup* tool_group) // Set hotregion of popup window Region rgn(gfx::Rect(rc).enlarge(16*guiscale())); - rgn.createUnion(rgn, Region(bounds())); + rgn.createUnion(rgn, Region(boundsOnScreen())); m_popupWindow->setHotRegion(rgn); m_popupWindow->setAutoRemap(false); m_popupWindow->setBounds(rc);