From 23328b92ba2430d5d97ab025fe9dcab272ef2d2b Mon Sep 17 00:00:00 2001 From: Martin Hradil Date: Sat, 12 Aug 2023 17:56:53 +0000 Subject: [PATCH] Support per-output -gradient --- hsetroot.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hsetroot.c b/hsetroot.c index 90ce65e..181a37e 100644 --- a/hsetroot.c +++ b/hsetroot.c @@ -398,7 +398,10 @@ main(int argc, char **argv) fprintf (stderr, "Bad angle (%s)\n", argv[i]); continue; } - imlib_image_fill_color_range_rectangle(0, 0, width, height, angle); + for (int j = 0 ; j < noutputs; j++) { + XineramaScreenInfo o = outputs[j]; + imlib_image_fill_color_range_rectangle(o.x_org, o.y_org, o.width, o.height, angle); + } } else if (strcmp(argv[i], "-fill") == 0) { if ((++i) >= argc) { fprintf(stderr, "Missing image\n");