Index: ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h |
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h |
index 53406d9f19e2a0de68694e6a473dea44ec78b2e5..773c8b6b35749c4593503e2e331836ed38ca2446 100644 |
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h |
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h |
@@ -222,9 +222,14 @@ private: |
// Is the window mapped to the screen? |
bool window_mapped_; |
- // The bounds of |xwindow_|. |
+ // The bounds that were requested for |xwindow_|. |
sadrul
2014/03/13 15:41:31
This can be confusing (e.g. |bounds_| can also be
|
gfx::Rect bounds_; |
+ // The actual bounds of |xwindow_|. |bounds_| and |x_bounds_| differ |
+ // immediately after SetBounds() is called because SetBounds() does not |
+ // synchronously change |xwindow_|'s bounds. |
+ gfx::Rect x_bounds_; |
+ |
// Whenever the bounds are set, we keep the previous set of bounds around so |
// we can have a better chance of getting the real |restored_bounds_|. Window |
// managers tend to send a Configure message with the maximized bounds, and |