Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't activate window when extending client area. #5989

Merged
merged 3 commits into from
May 31, 2021

Conversation

grokys
Copy link
Member

@grokys grokys commented May 28, 2021

What does the pull request do?

Fixes the issue described in #5988: Window.ShowActivated = false doesn't work with ExtendClientAreaToDecorationsHint = true.

When a window with ExtendClientAreaToDecorationsHint is shown on win32, WindowImpl.ExtendClientArea is called which in turn calls the win32 SetWindowPos API. However SetWindowPosFlags.SWP_NOACTIVATE wasn't being passed to that function, causing the window to be activated regardless of the ShowActivated setting.

Pass SetWindowPosFlags.SWP_NOACTIVATE to SetWindowPos here whether ShowActivated is set or not: the window will be activated in the later SetWindowPos call if necessary.

Fixed issues

Fixes #5988

@grokys grokys requested a review from danwalmsley May 28, 2021 15:16
@danwalmsley danwalmsley merged commit 40e41e8 into master May 31, 2021
@danwalmsley danwalmsley deleted the fixes/5988-showactivated-extendclientarea branch May 31, 2021 16:14
danwalmsley pushed a commit that referenced this pull request Jun 4, 2021
…endclientarea

Don't activate window when extending client area.
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.

Window.ShowActivated = false doesn't work with ExtendClientAreaToDecorationsHint
2 participants