aboutsummaryrefslogtreecommitdiff
path: root/x.c
diff options
context:
space:
mode:
authorDevin J. Pohly <djpohly@gmail.com>2017-11-06 17:57:45 -0600
committerDevin J. Pohly <djpohly@gmail.com>2018-02-25 21:53:24 -0600
commit323d38da20c8a1d295ab1dbc0fc7ce947ef824e1 (patch)
tree713288818320ae09fa67cc3b5032f67418a1d702 /x.c
parent416dd257274fd334be082b1138338adffa3e2d5e (diff)
downloadst-323d38da20c8a1d295ab1dbc0fc7ce947ef824e1.tar.gz
st-323d38da20c8a1d295ab1dbc0fc7ce947ef824e1.zip
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.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/x.c b/x.c
index 24f6991..04e2e05 100644
--- a/x.c
+++ b/x.c
@@ -187,6 +187,7 @@ static void (*handler[LASTEvent])(XEvent *) = {
187static DC dc; 187static DC dc;
188static XWindow xw; 188static XWindow xw;
189static XSelection xsel; 189static XSelection xsel;
190static TermWindow win;
190 191
191enum window_state { 192enum window_state {
192 WIN_VISIBLE = 1, 193 WIN_VISIBLE = 1,
@@ -1615,6 +1616,16 @@ xsetpointermotion(int set)
1615 XChangeWindowAttributes(xw.dpy, xw.win, CWEventMask, &xw.attrs); 1616 XChangeWindowAttributes(xw.dpy, xw.win, CWEventMask, &xw.attrs);
1616} 1617}
1617 1618
1619int
1620xsetcursor(int cursor)
1621{
1622 DEFAULT(cursor, 1);
1623 if (!BETWEEN(cursor, 0, 6))
1624 return 1;
1625 win.cursor = cursor;
1626 return 0;
1627}
1628
1618void 1629void
1619xseturgency(int add) 1630xseturgency(int add)
1620{ 1631{