Xinqi Bao's Git
projects
/
st.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
Pass new dimensions into ttyresize
[st.git]
/
x.c
diff --git
a/x.c
b/x.c
index
01ef1b0
..
1b656ac
100644
(file)
--- a/
x.c
+++ b/
x.c
@@
-192,7
+192,7
@@
zoomabs(const Arg *arg)
xunloadfonts();
xloadfonts(usedfont, arg->f);
cresize(0, 0);
xunloadfonts();
xloadfonts(usedfont, arg->f);
cresize(0, 0);
- ttyresize();
+ ttyresize(
win.tw, win.th
);
redraw();
xhints();
}
redraw();
xhints();
}
@@
-1679,7
+1679,7
@@
resize(XEvent *e)
return;
cresize(e->xconfigure.width, e->xconfigure.height);
return;
cresize(e->xconfigure.width, e->xconfigure.height);
- ttyresize();
+ ttyresize(
win.tw, win.th
);
}
void
}
void
@@
-1710,7
+1710,7
@@
run(void)
cresize(w, h);
ttynew();
cresize(w, h);
ttynew();
- ttyresize();
+ ttyresize(
win.tw, win.th
);
clock_gettime(CLOCK_MONOTONIC, &last);
lastblink = last;
clock_gettime(CLOCK_MONOTONIC, &last);
lastblink = last;