From 965619d0964973966bbd1d9d8087d1e8e8ff4867 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Mon, 16 Dec 2024 09:03:50 +0300 Subject: layout: Move toggle_fullscreen() impl to Workspace --- src/layout/scrolling.rs | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/layout/scrolling.rs') diff --git a/src/layout/scrolling.rs b/src/layout/scrolling.rs index 83c597aa..27618217 100644 --- a/src/layout/scrolling.rs +++ b/src/layout/scrolling.rs @@ -2140,16 +2140,6 @@ impl ScrollingSpace { } } - pub fn toggle_fullscreen(&mut self, window: &W::Id) { - let col = self - .columns - .iter_mut() - .find(|col| col.contains(window)) - .unwrap(); - let value = !col.is_fullscreen; - self.set_fullscreen(window, value); - } - pub fn render_above_top_layer(&self) -> bool { // Render above the top layer if we're on a fullscreen window and the view is stationary. if self.columns.is_empty() { -- cgit