Skip to content

Commit

Permalink
Fix opencv#25833: The correct way to disable top-most state is with H…
Browse files Browse the repository at this point in the history
…WND_NOTOPMOST, not HWND_TOP.
  • Loading branch information
dan-masek committed Jun 29, 2024
1 parent be00247 commit 1e5407a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/highgui/src/window_w32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ void cvSetPropTopmost_W32(const char* name, const bool topmost)

static bool setPropTopmost_(CvWindow& window, bool topmost)
{
HWND flag = topmost ? HWND_TOPMOST : HWND_TOP;
HWND flag = topmost ? HWND_TOPMOST : HWND_NOTOPMOST;
BOOL success = SetWindowPos(window.frame, flag, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);

if (!success)
Expand Down

0 comments on commit 1e5407a

Please sign in to comment.