Xinqi Bao's Git
projects
/
st.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
ae5baac
)
cursor is hid when unfocused.
author
Aurélien Aptel <
[email protected]
>
Mon, 30 Aug 2010 13:28:29 +0000
(15:28 +0200)
committer
Aurélien Aptel <
[email protected]
>
Mon, 30 Aug 2010 13:28:29 +0000
(15:28 +0200)
config.h
patch
|
blob
|
history
st.c
patch
|
blob
|
history
diff --git
a/config.h
b/config.h
index
5494b3b
..
8c37b16
100644
(file)
--- a/
config.h
+++ b/
config.h
@@
-1,7
+1,7
@@
#define TAB 8
#define TNAME "st-256color"
#define FONT "6x13"
#define TAB 8
#define TNAME "st-256color"
#define FONT "6x13"
-#define BOLDFONT
FONT"
bold"
+#define BOLDFONT
"6x13
bold"
#define BORDER 2
/* Terminal colors */
#define BORDER 2
/* Terminal colors */
diff --git
a/st.c
b/st.c
index
f42797f
..
73121ef
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-1129,7
+1129,7
@@
xdrawcursor(void) {
xclear(oldx, oldy, oldx, oldy);
/* draw the new one */
xclear(oldx, oldy, oldx, oldy);
/* draw the new one */
- if(!(term.c.state & CURSOR_HIDE)) {
+ if(!(term.c.state & CURSOR_HIDE)
&& xw.hasfocus
) {
xdraws(&g.c, g, term.c.x, term.c.y, 1);
oldx = term.c.x, oldy = term.c.y;
}
xdraws(&g.c, g, term.c.x, term.c.y, 1);
oldx = term.c.x, oldy = term.c.y;
}
@@
-1216,6
+1216,7
@@
void
focus(XEvent *ev) {
if((xw.hasfocus = ev->type == FocusIn))
xseturgency(0);
focus(XEvent *ev) {
if((xw.hasfocus = ev->type == FocusIn))
xseturgency(0);
+ draw(SCREEN_UPDATE);
}
char*
}
char*