Before drawing a background check if the buffer to use is already active
This commit is contained in:
parent
7681beecba
commit
54809851d9
1 changed files with 9 additions and 0 deletions
|
|
@ -431,6 +431,15 @@ impl BackgroundLayer
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if workspace_bg.buffer.slot().has_active_buffers() {
|
||||||
|
debug!(
|
||||||
|
"Skipping draw on output '{}' for workspace '{}' because its buffer already active",
|
||||||
|
self.output_name,
|
||||||
|
workspace_name,
|
||||||
|
);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Attach and commit to new workspace background
|
// Attach and commit to new workspace background
|
||||||
if let Err(e) = workspace_bg.buffer.attach_to(self.layer.wl_surface()) {
|
if let Err(e) = workspace_bg.buffer.attach_to(self.layer.wl_surface()) {
|
||||||
error!(
|
error!(
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue