From 0a6984f713eb345f40aabcab36227b097663e0a1 Mon Sep 17 00:00:00 2001 From: Ottatop Date: Wed, 19 Jun 2024 16:28:40 -0500 Subject: [PATCH] Reverse layer rendering Multiple overlay layer surfaces were being drawn backwards, so this fixes that --- snowcap | 2 +- src/input.rs | 4 ++-- src/render.rs | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/snowcap b/snowcap index e901659..7191c24 160000 --- a/snowcap +++ b/snowcap @@ -1 +1 @@ -Subproject commit e901659a86ec41c6903f8c913da711e1b8d95a56 +Subproject commit 7191c245cb247f1935accb3357dd2ef9a8e35e73 diff --git a/src/input.rs b/src/input.rs index 530ae27..f8a5cbd 100644 --- a/src/input.rs +++ b/src/input.rs @@ -685,7 +685,7 @@ impl State { for window in self.pinnacle.space.elements() { if let Some(toplevel) = window.toplevel() { - toplevel.send_configure(); + toplevel.send_pending_configure(); } } } else { @@ -695,7 +695,7 @@ impl State { for window in state.focus_stack.stack.iter() { window.set_activate(false); if let Some(toplevel) = window.toplevel() { - toplevel.send_configure(); + toplevel.send_pending_configure(); } } }); diff --git a/src/render.rs b/src/render.rs index b38f741..dc633fd 100644 --- a/src/render.rs +++ b/src/render.rs @@ -202,6 +202,7 @@ fn layer_render_elements( let layer_elements = layer_map .layers() + .rev() .filter_map(|surface| { layer_map .layer_geometry(surface)