tiling: Cleanup dragging on output/workspace switch
This commit is contained in:
parent
10902ff543
commit
4a53e63c28
3 changed files with 74 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue