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

Unified Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h

Issue 197283008: Fix panel dragging on Linux Aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
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

Powered by Google App Engine
This is Rietveld 408576698