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

Unified Diff: ui/ozone/platform/dri/dri_window.cc

Issue 566953002: [Ozone-DRI] Fix cursor showing on wrong monitor after display changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « ui/ozone/platform/dri/dri_cursor.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/dri_window.cc
diff --git a/ui/ozone/platform/dri/dri_window.cc b/ui/ozone/platform/dri/dri_window.cc
index cc186a58d597a2077288b85449c26322b90d4bda..c33e78db104d1f21a1ab0da7ec9b282598fd5062 100644
--- a/ui/ozone/platform/dri/dri_window.cc
+++ b/ui/ozone/platform/dri/dri_window.cc
@@ -53,7 +53,13 @@ void DriWindow::Close() {}
void DriWindow::SetBounds(const gfx::Rect& bounds) {
bounds_ = bounds;
delegate_->OnBoundsChanged(bounds);
+ if (cursor_->GetCursorWindow() == widget_)
+ cursor_->HideCursor();
+
dri_window_delegate_->OnBoundsChanged(bounds);
+
+ if (cursor_->GetCursorWindow() == widget_)
+ cursor_->ShowCursor();
}
gfx::Rect DriWindow::GetBounds() {
« no previous file with comments | « ui/ozone/platform/dri/dri_cursor.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698