Fix handling of failure case of IsWindowOnCurrentVirtualDesktop
If the IVirtualDestkopManager COM method IsWindowOnCurrentVirtualDesktop fails on a window, treat the window as non-occluding, because that's safer than treating it as occluding - it might be on an another virtual desktop, and thus should be non-occluding. Previously, IsWindowOnCurrentVirtualDesktop was incorrectly returning base::Optional nullopt on Windows 7 and 8.1 (i.e., unknown). This CL makes it return true, because there are no virtual desktops on Win 7/8, so every window is on the current desktop. This allows us to require that IsWindowOnCurrentVirtualDesktop return true to say that a window is occluding - previously we checked for != false, to handle Win7. Bug: 813093 Change-Id: Iee49eff9333a8530314720702b1815256acdbfc5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2410420Reviewed-by:Jesse McKenna <jessemckenna@google.com> Commit-Queue: David Bienvenu <davidbienvenu@chromium.org> Cr-Commit-Position: refs/heads/master@{#806683}
Showing
Please register or sign in to comment