summaryrefslogtreecommitdiff
path: root/chromium/components/exo/seat.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/components/exo/seat.cc')
-rw-r--r--chromium/components/exo/seat.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/chromium/components/exo/seat.cc b/chromium/components/exo/seat.cc
index af1838fcc63..e4915ffdd24 100644
--- a/chromium/components/exo/seat.cc
+++ b/chromium/components/exo/seat.cc
@@ -83,8 +83,12 @@ void Seat::StartDrag(DataSource* source,
Surface* icon,
ui::DragDropTypes::DragEventSource event_source) {
// DragDropOperation manages its own lifetime.
- drag_drop_operation_ =
- DragDropOperation::Create(source, origin, icon, event_source);
+ drag_drop_operation_ = DragDropOperation::Create(
+ source, origin, icon, last_location_, event_source);
+}
+
+void Seat::SetLastLocation(const gfx::Point& last_location) {
+ last_location_ = last_location;
}
void Seat::AbortPendingDragOperation() {