Changeset View
Changeset View
Standalone View
Standalone View
src/server/seat_interface.cpp
Show First 20 Lines • Show All 344 Lines • ▼ Show 20 Line(s) | 338 | QObject::connect(ti, &QObject::destroyed, q, | |||
---|---|---|---|---|---|
345 | } | 345 | } | ||
346 | ); | 346 | ); | ||
347 | } | 347 | } | ||
348 | 348 | | |||
349 | void SeatInterface::Private::endDrag(quint32 serial) | 349 | void SeatInterface::Private::endDrag(quint32 serial) | ||
350 | { | 350 | { | ||
351 | auto target = drag.target; | 351 | auto target = drag.target; | ||
352 | QObject::disconnect(drag.destroyConnection); | 352 | QObject::disconnect(drag.destroyConnection); | ||
353 | if (drag.source) { | ||||
354 | drag.source->dragSource()->dropPerformed(); | ||||
355 | } | ||||
353 | if (target) { | 356 | if (target) { | ||
354 | target->drop(); | 357 | target->drop(); | ||
355 | target->updateDragTarget(nullptr, serial); | 358 | target->updateDragTarget(nullptr, serial); | ||
356 | } | 359 | } | ||
357 | drag = Drag(); | 360 | drag = Drag(); | ||
358 | emit q->dragSurfaceChanged(); | 361 | emit q->dragSurfaceChanged(); | ||
359 | emit q->dragEnded(); | 362 | emit q->dragEnded(); | ||
360 | } | 363 | } | ||
▲ Show 20 Lines • Show All 1133 Lines • Show Last 20 Lines |