aboutsummaryrefslogtreecommitdiff
path: root/src/layout/scrolling.rs
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-12-16 09:03:50 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2024-12-30 20:12:37 +0300
commitf38acfe98848746598233a275ac3ee226f3df658 (patch)
treecffe239a9cb01cae9ddabbe1a01288904783d842 /src/layout/scrolling.rs
parent965619d0964973966bbd1d9d8087d1e8e8ff4867 (diff)
downloadniri-f38acfe98848746598233a275ac3ee226f3df658.tar.gz
niri-f38acfe98848746598233a275ac3ee226f3df658.tar.bz2
niri-f38acfe98848746598233a275ac3ee226f3df658.zip
layout: Remember whether to unfullscreen back into floating
Diffstat (limited to 'src/layout/scrolling.rs')
-rw-r--r--src/layout/scrolling.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/layout/scrolling.rs b/src/layout/scrolling.rs
index 27618217..ee4378a3 100644
--- a/src/layout/scrolling.rs
+++ b/src/layout/scrolling.rs
@@ -2081,7 +2081,7 @@ impl<W: LayoutElement> ScrollingSpace<W> {
cancel_resize_for_column(&mut self.interactive_resize, col);
}
- pub fn set_fullscreen(&mut self, window: &W::Id, is_fullscreen: bool) {
+ pub fn set_fullscreen(&mut self, window: &W::Id, is_fullscreen: bool) -> bool {
let (mut col_idx, tile_idx) = self
.columns
.iter()
@@ -2090,7 +2090,7 @@ impl<W: LayoutElement> ScrollingSpace<W> {
.unwrap();
if is_fullscreen == self.columns[col_idx].is_fullscreen {
- return;
+ return false;
}
if is_fullscreen
@@ -2138,6 +2138,8 @@ impl<W: LayoutElement> ScrollingSpace<W> {
{
self.view_offset_before_fullscreen = None;
}
+
+ true
}
pub fn render_above_top_layer(&self) -> bool {