From 753eca739c76af8c1bd7579d68c7b5a5f4a1040b Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Thu, 15 Jul 2021 15:26:03 +0200 Subject: [PATCH] wallpaper: optimize use of XRandR Don't ask for hardware update. --- bin/build-wallpaper | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/build-wallpaper b/bin/build-wallpaper index 66daf36..d3392a0 100755 --- a/bin/build-wallpaper +++ b/bin/build-wallpaper @@ -40,7 +40,7 @@ background = Image.new('RGB', (screen.width_in_pixels, screen.height_in_pixels)) # Query randr extension screens = [] -screen_resources = randr.get_screen_resources(window) +screen_resources = randr.get_screen_resources_current(window) for output in screen_resources.outputs: output_info = randr.get_output_info(window, output, screen_resources.timestamp)