Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Commit

Permalink
Merge pull request #479 from adobe/jeff/surface-pro-taskbar-fix
Browse files Browse the repository at this point in the history
Add a fix for Surface Pro users who auto hide their taskbar
  • Loading branch information
redmunds committed Oct 23, 2014
2 parents dc6e67e + c4734a5 commit 7988c34
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion appshell/cef_dark_aero_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,10 @@ namespace WindowsTaskBar
RECT tbOther;
BOOL intersection = ::IntersectRect(&tbOther, &info.rcMonitor, &bar.rc);

return ((dwStyle & WS_EX_TOPMOST) && intersection);
// Short-circuit if there's only 1 monitor and assume it intersects
bool singleMonitor = (::GetSystemMetrics(SM_CMONITORS) == 1);

return ((dwStyle & WS_EX_TOPMOST) && (singleMonitor || intersection));
}

// API
Expand Down

0 comments on commit 7988c34

Please sign in to comment.