Adding background image reload patch ref. pull request #62

This commit is contained in:
bakkeby 2022-04-11 15:56:12 +02:00
parent d8ec7a396c
commit 3e41e252b1
7 changed files with 50 additions and 24 deletions

View file

@ -94,3 +94,13 @@ bginit()
XChangeWindowAttributes(xw.dpy, xw.win, CWEventMask, &xw.attrs);
}
}
#if BACKGROUND_IMAGE_RELOAD_PATCH
void
reload_image()
{
XFreeGC(xw.dpy, xw.bggc);
bginit();
redraw();
}
#endif // XRESOURCES_RELOAD_PATCH