diff options
author | disher@chromium.org <disher@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-23 18:33:15 +0000 |
---|---|---|
committer | disher@chromium.org <disher@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-23 18:33:15 +0000 |
commit | adb4690d4a7c1cfd96eb2bfc4696e91dc4b8bcbd (patch) | |
tree | 34f4902bdf9823e51823e2e0b47876dfe4df0c97 /ui/aura/root_window_host_linux.cc | |
parent | 94281e0f19744db18f5b5b7f9d6fca7204bfbafc (diff) | |
download | chromium_src-adb4690d4a7c1cfd96eb2bfc4696e91dc4b8bcbd.zip chromium_src-adb4690d4a7c1cfd96eb2bfc4696e91dc4b8bcbd.tar.gz chromium_src-adb4690d4a7c1cfd96eb2bfc4696e91dc4b8bcbd.tar.bz2 |
SetBounds even when size didn't change.
This early return would cause us to not properly move the XWindow when the
display configuration changes. This would, for example, result in a black
remaining display after detaching an external primary display.
BUG=chromium-os:31901
TEST=Manually tested on Lumpy to verify that unplugging an external display does
correctly switch the aura_root_0 XWindow back to the internal display.
Review URL: https://chromiumcodereview.appspot.com/10816009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147888 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/aura/root_window_host_linux.cc')
-rw-r--r-- | ui/aura/root_window_host_linux.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/ui/aura/root_window_host_linux.cc b/ui/aura/root_window_host_linux.cc index 9cdef7c..04f7587 100644 --- a/ui/aura/root_window_host_linux.cc +++ b/ui/aura/root_window_host_linux.cc @@ -820,11 +820,6 @@ void RootWindowHostLinux::SetBounds(const gfx::Rect& bounds) { bool size_changed = bounds_.size() != bounds.size() || current_scale != new_scale; - if (!size_changed) { - root_window_->SchedulePaintInRect(root_window_->bounds()); - return; - } - if (bounds.size() != bounds_.size()) XResizeWindow(xdisplay_, xwindow_, bounds.width(), bounds.height()); @@ -839,6 +834,8 @@ void RootWindowHostLinux::SetBounds(const gfx::Rect& bounds) { bounds_ = bounds; if (size_changed) root_window_->OnHostResized(bounds.size()); + else + root_window_->SchedulePaintInRect(root_window_->bounds()); } gfx::Point RootWindowHostLinux::GetLocationOnNativeScreen() const { |