tiling: Cleanup dragging on output/workspace switch

This commit is contained in:
Victoria Brekenfeld 2023-07-31 17:25:09 +02:00
parent 10902ff543
commit 4a53e63c28
3 changed files with 74 additions and 9 deletions

View file

@ -1003,6 +1003,12 @@ impl Shell {
if match &mut self.workspaces {
WorkspaceMode::OutputBound(sets, _) => {
if let Some(set) = sets.get_mut(output) {
if matches!(
self.overview_mode,
OverviewMode::Started(Trigger::Pointer(_), _)
) {
set.workspaces[set.active].tiling_layer.cleanup_drag(output);
}
set.activate(idx, &mut self.workspace_state.update())?
} else {
false