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

Commit

Permalink
update for surface pro users with auto-hide taskbars
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffryBooher committed Oct 22, 2014
1 parent 59a44cb commit c4734a5
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 c4734a5

Please sign in to comment.