popup deferred hide suppressed if reopened
popup no longer tries to close itself a second time popup no longer closes after having been reopened fixed bug in RenameDialog not calling base (by inspection) fixes #59181 fixes #60921 reverts #59287
This commit is contained in:
parent
677b63d765
commit
47d0dc8a41
4 changed files with 26 additions and 2 deletions
|
|
@ -2158,7 +2158,10 @@ void DisplayServerWindows::popup_close(WindowID p_window) {
|
|||
WindowID win_id = E->get();
|
||||
popup_list.erase(E);
|
||||
|
||||
_send_window_event(windows[win_id], DisplayServerWindows::WINDOW_EVENT_CLOSE_REQUEST);
|
||||
if (win_id != p_window) {
|
||||
// Only request close on related windows, not this window. We are already processing it.
|
||||
_send_window_event(windows[win_id], DisplayServerWindows::WINDOW_EVENT_CLOSE_REQUEST);
|
||||
}
|
||||
E = F;
|
||||
}
|
||||
}
|
||||
|
|
@ -2173,6 +2176,7 @@ LRESULT DisplayServerWindows::MouseProc(int code, WPARAM wParam, LPARAM lParam)
|
|||
case WM_NCRBUTTONDOWN:
|
||||
case WM_NCMBUTTONDOWN:
|
||||
case WM_LBUTTONDOWN:
|
||||
case WM_RBUTTONDOWN:
|
||||
case WM_MBUTTONDOWN: {
|
||||
MOUSEHOOKSTRUCT *ms = (MOUSEHOOKSTRUCT *)lParam;
|
||||
Point2i pos = Point2i(ms->pt.x, ms->pt.y);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue