mirror of
https://github.com/pinnacle-comp/pinnacle.git
synced 2024-12-25 09:59:21 +01:00
Reverse layer rendering
Multiple overlay layer surfaces were being drawn backwards, so this fixes that
This commit is contained in:
parent
05b8196319
commit
0a6984f713
3 changed files with 4 additions and 3 deletions
2
snowcap
2
snowcap
|
@ -1 +1 @@
|
||||||
Subproject commit e901659a86ec41c6903f8c913da711e1b8d95a56
|
Subproject commit 7191c245cb247f1935accb3357dd2ef9a8e35e73
|
|
@ -685,7 +685,7 @@ impl State {
|
||||||
|
|
||||||
for window in self.pinnacle.space.elements() {
|
for window in self.pinnacle.space.elements() {
|
||||||
if let Some(toplevel) = window.toplevel() {
|
if let Some(toplevel) = window.toplevel() {
|
||||||
toplevel.send_configure();
|
toplevel.send_pending_configure();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -695,7 +695,7 @@ impl State {
|
||||||
for window in state.focus_stack.stack.iter() {
|
for window in state.focus_stack.stack.iter() {
|
||||||
window.set_activate(false);
|
window.set_activate(false);
|
||||||
if let Some(toplevel) = window.toplevel() {
|
if let Some(toplevel) = window.toplevel() {
|
||||||
toplevel.send_configure();
|
toplevel.send_pending_configure();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -202,6 +202,7 @@ fn layer_render_elements<R: PRenderer>(
|
||||||
|
|
||||||
let layer_elements = layer_map
|
let layer_elements = layer_map
|
||||||
.layers()
|
.layers()
|
||||||
|
.rev()
|
||||||
.filter_map(|surface| {
|
.filter_map(|surface| {
|
||||||
layer_map
|
layer_map
|
||||||
.layer_geometry(surface)
|
.layer_geometry(surface)
|
||||||
|
|
Loading…
Reference in a new issue