Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(427)

Unified Diff: ui/display/win/screen_win.cc

Issue 2829693003: Fix stale display work_area on windows (Closed)
Patch Set: Fix stale display work_area on windows Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/win/screen_win.cc
diff --git a/ui/display/win/screen_win.cc b/ui/display/win/screen_win.cc
index a62cde1cd6075adc59c021645b95ca16dd6fdca5..5ad877e2bb61bf9949e4a051b13dbc9012b6675c 100644
--- a/ui/display/win/screen_win.cc
+++ b/ui/display/win/screen_win.cc
@@ -488,7 +488,8 @@ void ScreenWin::OnWndProc(HWND hwnd,
UINT message,
WPARAM wparam,
LPARAM lparam) {
- if (message != WM_DISPLAYCHANGE)
+ if (message != WM_DISPLAYCHANGE &&
+ !(message == WM_SETTINGCHANGE && wparam == SPI_SETWORKAREA))
return;
std::vector<Display> old_displays = std::move(displays_);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698