Skip to content

Commit 0224640

Browse files
committed
dnd: Force re-enter on unset
1 parent 9511de2 commit 0224640

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/input/dnd/grab.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,15 @@ where
353353
handle.button(data, event);
354354

355355
if handle.current_pressed().is_empty() {
356+
handle.motion(
357+
data,
358+
None,
359+
&PointerMotionEvent {
360+
location: self.last_position,
361+
serial: event.serial,
362+
time: event.time,
363+
},
364+
);
356365
// the user dropped, proceed to the drop
357366
handle.unset_grab(self, data, event.serial, event.time, true);
358367
}

0 commit comments

Comments
 (0)