Skip to content

Fix #25833: The correct way to disable top-most state is with HWND_NOTOPMOST, not HWND_TOP.#25836

Merged
asmorkalov merged 1 commit intoopencv:4.xfrom
dan-masek:fix_win32_topmost_toggle
Jul 1, 2024
Merged

Fix #25833: The correct way to disable top-most state is with HWND_NOTOPMOST, not HWND_TOP.#25836
asmorkalov merged 1 commit intoopencv:4.xfrom
dan-masek:fix_win32_topmost_toggle

Conversation

@dan-masek
Copy link
Copy Markdown
Contributor

Fixes #25833

Would it make sense to add a test case for this? It would be a pair of setWindowProperty / getWindowProperty to verify that WND_PROP_TOPMOST actually changes (one symptom of the bug). Unfortunately I can't seem to get the tests to even appear in the generated VS solution right now...

@asmorkalov
Copy link
Copy Markdown
Contributor

It's hard to check the window position top/not-top in cross-platform way. The unit test will be too complex here.

@asmorkalov asmorkalov merged commit 34ed88d into opencv:4.x Jul 1, 2024
@asmorkalov asmorkalov mentioned this pull request Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Win32 HighGUI backend can't turn top-most state off

2 participants