Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWin
Commits
ecda92e0
Commit
ecda92e0
authored
Jun 02, 2021
by
David Edmundson
Browse files
Introduce a new signal when a drag is dropped
parent
39884136
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/wayland/seat_interface.cpp
View file @
ecda92e0
...
...
@@ -316,6 +316,7 @@ void SeatInterfacePrivate::endDrag(quint32 serial)
if
(
dragSource
)
{
// TODO: Also check the current drag-and-drop action.
if
(
dragTargetDevice
&&
dragSource
->
isAccepted
())
{
Q_EMIT
q
->
dragDropped
();
dragTargetDevice
->
drop
();
dragSource
->
dropPerformed
();
}
else
{
...
...
src/wayland/seat_interface.h
View file @
ecda92e0
...
...
@@ -657,6 +657,11 @@ Q_SIGNALS:
* @see dragSurface
*/
void
dragSurfaceChanged
();
/** Emitted when a drop ocurrs in a drag'n'drop operation. This is emitted
* before dragEnded
*/
void
dragDropped
();
/**
* Emitted whenever the focused text input changed.
* @see focusedTextInput
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment