diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-12-29 11:04:08 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-12-30 20:12:37 +0300 |
| commit | be05b66ac323845fb65fe87384b5a8aae0e1fd18 (patch) | |
| tree | dec5d8c3ca847e2bb27369b628fa662f32190ba1 /src/layout/mod.rs | |
| parent | d1998ae3fa28d8c7034f0b3ba188c355fc146e5c (diff) | |
| download | niri-be05b66ac323845fb65fe87384b5a8aae0e1fd18.tar.gz niri-be05b66ac323845fb65fe87384b5a8aae0e1fd18.tar.bz2 niri-be05b66ac323845fb65fe87384b5a8aae0e1fd18.zip | |
Hide focus ring for unfocused layout and under interactive move
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, .. } => { |
