Adding background image patch

This commit is contained in:
bakkeby 2022-03-10 11:37:49 +01:00
parent 51dc6ba469
commit 1a8175a337
9 changed files with 185 additions and 2 deletions

6
st.h
View file

@ -181,6 +181,9 @@ typedef union {
typedef struct {
int tw, th; /* tty width and height */
int w, h; /* window width and height */
#if BACKGROUND_IMAGE_PATCH
int x, y; /* window location */
#endif // BACKGROUND_IMAGE_PATCH
#if ANYSIZE_PATCH
int hborderpx, vborderpx;
#endif // ANYSIZE_PATCH
@ -210,6 +213,9 @@ typedef struct {
XVaNestedList spotlist;
} ime;
Draw draw;
#if BACKGROUND_IMAGE_PATCH
GC bggc; /* Graphics Context for background */
#endif // BACKGROUND_IMAGE_PATCH
Visual *vis;
XSetWindowAttributes attrs;
#if HIDECURSOR_PATCH