Moved check inside of fetch pixel logic
@@ -62,11 +62,11 @@ impl Mode for Default {
}
fn output_render_post(&mut self, output: WlcOutput) {
+ let need_to_fetch = read_screen_scrape_lock();
+ if *need_to_fetch {
if WlcOutput::focused() != output {
return
}
- let need_to_fetch = read_screen_scrape_lock();
- if *need_to_fetch {
if let Ok(mut scraped_pixels) = scraped_pixels_lock() {
let resolution = output.get_resolution()
.expect("Output had no resolution");
