Xinqi Bao's Git
projects
/
st.git
/ diff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
ab7037c
)
s/hasfocus/focus/ for consistency.
author
Aurélien Aptel <
[email protected]
>
Sat, 11 Sep 2010 14:07:36 +0000
(16:07 +0200)
committer
Aurélien Aptel <
[email protected]
>
Sat, 11 Sep 2010 14:07:36 +0000
(16:07 +0200)
st.c
diff
|
blob
|
history
diff --git
a/st.c
b/st.c
index
c9d0fb8
..
99ab085
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-114,7
+114,7
@@
typedef struct {
int bufh; /* pixmap height */
int ch; /* char height */
int cw; /* char width */
int bufh; /* pixmap height */
int ch; /* char height */
int cw; /* char width */
- int
has
focus;
+ int focus;
int vis; /* is visible */
} XWindow;
int vis; /* is visible */
} XWindow;
@@
-1043,7
+1043,7
@@
tputc(char c) {
tnewline();
break;
case '\a':
tnewline();
break;
case '\a':
- if(!xw.
has
focus)
+ if(!xw.focus)
xseturgency(1);
break;
case '\033':
xseturgency(1);
break;
case '\033':
@@
-1286,7
+1286,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) && xw.
has
focus) {
+ if(!(term.c.state & CURSOR_HIDE) && xw.focus) {
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;
}
@@
-1388,7
+1388,7
@@
xseturgency(int add) {
void
focus(XEvent *ev) {
void
focus(XEvent *ev) {
- if((xw.
has
focus = ev->type == FocusIn))
+ if((xw.focus = ev->type == FocusIn))
xseturgency(0);
draw(SCREEN_UPDATE);
}
xseturgency(0);
draw(SCREEN_UPDATE);
}