diff options
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 *) = { | |||
187 | static DC dc; | 187 | static DC dc; |
188 | static XWindow xw; | 188 | static XWindow xw; |
189 | static XSelection xsel; | 189 | static XSelection xsel; |
190 | static TermWindow win; | ||
190 | 191 | ||
191 | enum window_state { | 192 | enum 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 | ||
1619 | int | ||
1620 | xsetcursor(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 | |||
1618 | void | 1629 | void |
1619 | xseturgency(int add) | 1630 | xseturgency(int add) |
1620 | { | 1631 | { |