diff options
Diffstat (limited to 'src/handlers')
| -rw-r--r-- | src/handlers/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/handlers/mod.rs b/src/handlers/mod.rs index 334ab762..587d44ea 100644 --- a/src/handlers/mod.rs +++ b/src/handlers/mod.rs @@ -344,6 +344,9 @@ impl ClientDndGrabHandler for State { fn dropped(&mut self, target: Option<WlSurface>, validated: bool, _seat: Seat<Self>) { trace!("client dropped, target: {target:?}, validated: {validated}"); + // End DnD before activating a specific window below so that it takes precedence. + self.niri.layout.dnd_end(); + // Activate the target output, since that's how Firefox drag-tab-into-new-window works for // example. On successful drop, additionally activate the target window. let mut activate_output = true; |
