wallpaper: optimize use of XRandR

Don't ask for hardware update.
This commit is contained in:
Vincent Bernat 2021-07-15 15:26:03 +02:00
parent 84b1aa99cc
commit 753eca739c

View file

@ -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)