diff options
Diffstat (limited to 'src/layout/mod.rs')
| -rw-r--r-- | src/layout/mod.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/layout/mod.rs b/src/layout/mod.rs index 0e068499..433cae43 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -3565,6 +3565,14 @@ impl<W: LayoutElement> Layout<W> { } } + pub fn interactive_move_is_moving_above_output(&self, output: &Output) -> bool { + let Some(InteractiveMoveState::Moving(move_)) = &self.interactive_move else { + return false; + }; + + move_.output == *output + } + pub fn interactive_resize_begin(&mut self, window: W::Id, edges: ResizeEdge) -> bool { match &mut self.monitor_set { MonitorSet::Normal { monitors, .. } => { |
