summaryrefslogtreecommitdiffstats
path: root/ui/ozone
diff options
context:
space:
mode:
authorspang <spang@chromium.org>2015-02-05 11:56:44 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-05 19:58:41 +0000
commit82483b002d360b8eb1737f3a4ac83839721d5b19 (patch)
tree833dc0f4b650c26bee627a6b50b95d236982e735 /ui/ozone
parent7038d8ba521d30ec24c2dcdc27545fbbd519f8f1 (diff)
downloadchromium_src-82483b002d360b8eb1737f3a4ac83839721d5b19.zip
chromium_src-82483b002d360b8eb1737f3a4ac83839721d5b19.tar.gz
chromium_src-82483b002d360b8eb1737f3a4ac83839721d5b19.tar.bz2
ozone: dri: Re-add call to show cursor after bounds change
This fixes some cases of the cursor disappearing temporarily after a bounds change that started after r313336 ("Constrain the cursor when overscan insets are set"). We hide the cursor during bounds changes, so we must make sure to show it again afterwards. BUG=427619 TEST=On link_freon, change the display resolution via Ctrl+Shift+Plus or Ctrl+Shift+Minus, and make sure the cursor is visible afterwards. Review URL: https://codereview.chromium.org/896343002 Cr-Commit-Position: refs/heads/master@{#314862}
Diffstat (limited to 'ui/ozone')
-rw-r--r--ui/ozone/platform/dri/dri_window.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/ozone/platform/dri/dri_window.cc b/ui/ozone/platform/dri/dri_window.cc
index 1973890..e1e24ab 100644
--- a/ui/ozone/platform/dri/dri_window.cc
+++ b/ui/ozone/platform/dri/dri_window.cc
@@ -178,6 +178,7 @@ void DriWindow::OnChannelDestroyed() {
void DriWindow::SendBoundsChange() {
cursor_->PrepareForBoundsChange(widget_);
sender_->Send(new OzoneGpuMsg_WindowBoundsChanged(widget_, bounds_));
+ cursor_->ConfineCursorToBounds(widget_, GetCursorConfinedBounds());
}
} // namespace ui