From 5dbe090098df3080292d13064937904c4e5aabf1 Mon Sep 17 00:00:00 2001 From: whitequark Date: Mon, 20 May 2019 22:43:29 +0000 Subject: [PATCH] Win32: do not insert windows with parents after HWND_TOPMOST. It is not clear why this code was added (I don't remember) and the normal parent-child relationship should be sufficient for the task of keeping property browser on top of the main window. With SetWindowPos(hwnd, HWND_TOPMOST) though, the property browser window stays on top of *anything*, even if the user switches to an entirely different application. --- src/platform/guiwin.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/platform/guiwin.cpp b/src/platform/guiwin.cpp index 267d05d..0366880 100644 --- a/src/platform/guiwin.cpp +++ b/src/platform/guiwin.cpp @@ -559,10 +559,6 @@ public: CW_USEDEFAULT, CW_USEDEFAULT, hParentWindow, NULL, NULL, NULL)); sscheck(SetWindowLongPtr(hWindow, 0, (LONG_PTR)this)); - if(hParentWindow != NULL) { - sscheck(SetWindowPos(hWindow, HWND_TOPMOST, 0, 0, 0, 0, - SWP_NOMOVE|SWP_NOSIZE|SWP_NOACTIVATE)); - } sscheck(hTooltip = CreateWindowExW(0, TOOLTIPS_CLASS, NULL, WS_POPUP|TTS_NOPREFIX|TTS_ALWAYSTIP,