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>
This commit is contained in:
parent
416dd25727
commit
323d38da20
4 changed files with 13 additions and 6 deletions
11
x.c
11
x.c
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue