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

Unified Diff: ui/views/win/hwnd_message_handler.cc

Issue 2753933003: Fix theme change paint issue on linux. (Closed)
Patch Set: Created 3 years, 9 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 | « ui/views/widget/widget.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/win/hwnd_message_handler.cc
diff --git a/ui/views/win/hwnd_message_handler.cc b/ui/views/win/hwnd_message_handler.cc
index a58c5f73ed84f641a44d043652cd2939c1d5d7cd..5547471c277d44cfdcf360fb9dc2dbd8ca6d7304 100644
--- a/ui/views/win/hwnd_message_handler.cc
+++ b/ui/views/win/hwnd_message_handler.cc
@@ -828,10 +828,6 @@ void HWNDMessageHandler::SetWindowIcons(const gfx::ImageSkia& window_icon,
void HWNDMessageHandler::SetFullscreen(bool fullscreen) {
background_fullscreen_hack_ = false;
fullscreen_handler()->SetFullscreen(fullscreen);
- // If we are out of fullscreen and there was a pending DWM transition for the
- // window, then go ahead and do it now.
- if (!fullscreen && dwm_transition_desired_)
- PerformDwmTransition();
// Add the fullscreen window to the fullscreen window map which is used to
// handle window activations.
@@ -844,6 +840,10 @@ void HWNDMessageHandler::SetFullscreen(bool fullscreen) {
if (iter != fullscreen_monitor_map_.Get().end())
fullscreen_monitor_map_.Get().erase(iter);
}
+ // If we are out of fullscreen and there was a pending DWM transition for the
+ // window, then go ahead and do it now.
+ if (!fullscreen && dwm_transition_desired_)
+ PerformDwmTransition();
}
void HWNDMessageHandler::SizeConstraintsChanged() {
« no previous file with comments | « ui/views/widget/widget.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698