Index: ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc |
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc |
index 1fd497f8b0197acafe82684fec3ffbc2739a1352..1040ec931d69fdfd15d558cf780693ccb630d578 100644 |
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc |
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc |
@@ -705,6 +705,8 @@ void DesktopWindowTreeHostX11::SetFullscreen(bool fullscreen) { |
if (is_fullscreen_ == fullscreen) |
return; |
is_fullscreen_ = fullscreen; |
+ if (is_fullscreen_) |
+ delayed_resize_task_.Cancel(); |
// Work around a bug where if we try to unfullscreen, metacity immediately |
// fullscreens us again. This is a little flickery and not necessary if |