From c21805bf705bd36a6eb7f79039b759e9af79dfcb Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Wed, 27 Dec 2023 21:51:42 +0400 Subject: layout: Refactor to support window decorations, add border and fullscreen backdrop MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Windows are now wrapped in Tiles, which keep track of window-specific decorations. Particularly, I implemented a black fullscreen backdrop, which finally brings fullscreened windows smaller than the screen in line with how the Wayland protocol says they should look—centered in a black rectangle. I also implemented window borders, which are similar to the focus ring, but always visible (and hence affect the layout and sizing). --- src/layout/monitor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/layout/monitor.rs') diff --git a/src/layout/monitor.rs b/src/layout/monitor.rs index 8654af0e..77569a0c 100644 --- a/src/layout/monitor.rs +++ b/src/layout/monitor.rs @@ -345,7 +345,7 @@ impl Monitor { } let column = &workspace.columns[workspace.active_column_idx]; - Some(&column.windows[column.active_window_idx]) + Some(column.windows[column.active_window_idx].window()) } pub fn advance_animations(&mut self, current_time: Duration, is_active: bool) { -- cgit