floating: Add proper recalculate function
Don't just check maximized windows on every refresh, remapping them and causing flickering, but introduce a proper recalculate method to be called on layer-shell events / set_output event. Also if we need to remap, remap all windows to keep stacking order.
This commit is contained in:
parent
c27127e44c
commit
da9af7ad23
3 changed files with 38 additions and 26 deletions
|
|
@ -811,7 +811,7 @@ impl Workspaces {
|
|||
|
||||
pub fn recalculate(&mut self) {
|
||||
for set in self.sets.values_mut() {
|
||||
set.sticky_layer.refresh();
|
||||
set.sticky_layer.recalculate();
|
||||
set.workspaces.iter_mut().for_each(|w| w.recalculate());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue