diff options
author | Devin J. Pohly | 2017-11-06 17:57:45 -0600 |
---|---|---|
committer | Devin J. Pohly | 2018-02-25 21:53:24 -0600 |
commit | a2aa6add3b2f5b77d8252af6a15ee4553fbd03a5 (patch) | |
tree | 4e3c85a034611b61dbc882ce6bc2acf49a13807e /x.c | |
parent | f126764598c56fb56d0dc9793feb5b73e3d975ae (diff) | |
download | aur-a2aa6add3b2f5b77d8252af6a15ee4553fbd03a5.tar.gz |
Make win variable internal to x.c
There was only a single reference to the `win` variable in st.c, so
exporting that to x.c allows us to rid ourselves of another extern.
Signed-off-by: Devin J. Pohly <djpohly@gmail.com>
Diffstat (limited to 'x.c')
-rw-r--r-- | x.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -187,6 +187,7 @@ static void (*handler[LASTEvent])(XEvent *) = { static DC dc; static XWindow xw; static XSelection xsel; +static TermWindow win; enum window_state { WIN_VISIBLE = 1, @@ -1615,6 +1616,16 @@ xsetpointermotion(int set) XChangeWindowAttributes(xw.dpy, xw.win, CWEventMask, &xw.attrs); } +int +xsetcursor(int cursor) +{ + DEFAULT(cursor, 1); + if (!BETWEEN(cursor, 0, 6)) + return 1; + win.cursor = cursor; + return 0; +} + void xseturgency(int add) { |