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

Fix Chrome tab move leaving zone highlighted #656

Merged
merged 2 commits into from
Nov 5, 2019

Conversation

bzoz
Copy link
Contributor

@bzoz bzoz commented Nov 4, 2019

Summary of the Pull Request

When a Chrome tab is moved, its style is changed so IsInterestingWindow no longer returns true. This would leave the zones highlighted. This PR stores the HWND of the window which move triggered the zones to be highlighted.

PR Checklist

Validation Steps Performed

Manual

@bzoz bzoz requested a review from enricogior November 4, 2019 14:06
@@ -220,6 +220,7 @@ class FancyZonesModule : public PowertoyModuleIface
void MoveSizeEnd(HWND window, POINT const& ptScreen) noexcept;
void MoveSizeUpdate(POINT const& ptScreen) noexcept;

HANDLE m_moved_window = nullptr;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rename m_moved_window to m_movedWindow.

@enricogior
Copy link
Contributor

Beside the variable name change, LGTM.

@bzoz
Copy link
Contributor Author

bzoz commented Nov 4, 2019

Updated, PTAL

@bzoz bzoz merged commit 96aa6ae into microsoft:master Nov 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Moving Chrome tab leaves fancy zone hints up after tab has been moved
2 participants