From be05b66ac323845fb65fe87384b5a8aae0e1fd18 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Sun, 29 Dec 2024 11:04:08 +0300 Subject: Hide focus ring for unfocused layout and under interactive move --- src/layout/mod.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/layout/mod.rs') 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 Layout { } } + 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, .. } => { -- cgit