DescriptionReduce the size of the fullscreen window on activation loss only if the window being activated is on the same monitor
Currently we reduce the size of the fullscreen window on activation loss by 1 px to ensure that other maximized windows on the same thread don't
get treated as fullscreen windows, i.e. they draw over the taskbar, autohide taskbar does not work etc.
Based on some testing it looks like this problem only happens if the fullscreen window and the window being activated are on the same monitor.
The fix is to reduce the fullscreen window bounds only if it is on the same monitor as the window being activated. For this we have a map in
HWNDMessageHandler which is keyed on HMONITOR. We use this to determine the same. This map is populated when a window becomes fullscreen.
BUG=604359
TEST=The fullscreen window size reducing is already covered by the interactive_ui_test WidgetTestInteractive.
FullscreenBoundsReducedOnActivationLoss. Don't have a good way to test the multiple monitor case.
Committed: https://crrev.com/b14dd7c0ea2957b091eb98c7b5f461bfc8129fe0
Cr-Commit-Position: refs/heads/master@{#394000}
Patch Set 1 #Patch Set 2 : Remove unused include and fix indent #Patch Set 3 : Fix include order #
Total comments: 5
Patch Set 4 : Address review comments #Patch Set 5 : Save the HWNDMessageHandler instance in the fullscreen map #Patch Set 6 : Restore newline #
Total comments: 11
Patch Set 7 : git cl format #Patch Set 8 : Fix loop #
Depends on Patchset: Messages
Total messages: 14 (4 generated)
|