mirror of
https://github.com/LinuxBeginnings/swww.git
synced 2026-01-12 07:21:01 -03:00
Fix crush when changing monitor configuration
This commit is contained in:
@@ -372,9 +372,12 @@ impl wayland::interfaces::wl_output::EvHandler for Daemon {
|
||||
fn done(&mut self, sender_id: ObjectId) {
|
||||
for wallpaper in self.wallpapers.iter() {
|
||||
if wallpaper.borrow().has_output(sender_id) {
|
||||
wallpaper
|
||||
if wallpaper
|
||||
.borrow_mut()
|
||||
.commit_surface_changes(self.use_cache);
|
||||
.commit_surface_changes(self.use_cache)
|
||||
{
|
||||
self.stop_animations(&[wallpaper.clone()]);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user