mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
Skip rendering when backend is inactive
This commit is contained in:
@@ -945,6 +945,10 @@ impl Niri {
|
||||
fn redraw(&mut self, backend: &mut Backend, output: &Output) {
|
||||
let _span = tracy_client::span!("Niri::redraw");
|
||||
|
||||
if !backend.is_active() {
|
||||
return;
|
||||
}
|
||||
|
||||
let Some(renderer) = backend.renderer() else {
|
||||
return;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user