aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurélien Aptel <aurelien.aptel@gmail.com>2010-09-11 16:07:36 +0200
committerAurélien Aptel <aurelien.aptel@gmail.com>2010-09-11 16:07:36 +0200
commitad918b5a0bc1ebbd44ec43096eb54a52ccb853ca (patch)
tree875c934d47f681310719c13de4087e6d69bc3e00
parent047aa071f349aa685bb27fd20f52990fee2b6b98 (diff)
downloadst-ad918b5a0bc1ebbd44ec43096eb54a52ccb853ca.tar.gz
st-ad918b5a0bc1ebbd44ec43096eb54a52ccb853ca.tar.bz2
s/hasfocus/focus/ for consistency.
-rw-r--r--st.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/st.c b/st.c
index c9d0fb8..99ab085 100644
--- 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 hasfocus;
+ int focus;
int vis; /* is visible */
} XWindow;
@@ -1043,7 +1043,7 @@ tputc(char c) {
tnewline();
break;
case '\a':
- if(!xw.hasfocus)
+ if(!xw.focus)
xseturgency(1);
break;
case '\033':
@@ -1286,7 +1286,7 @@ xdrawcursor(void) {
xclear(oldx, oldy, oldx, oldy);
/* draw the new one */
- if(!(term.c.state & CURSOR_HIDE) && xw.hasfocus) {
+ 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;
}
@@ -1388,7 +1388,7 @@ xseturgency(int add) {
void
focus(XEvent *ev) {
- if((xw.hasfocus = ev->type == FocusIn))
+ if((xw.focus = ev->type == FocusIn))
xseturgency(0);
draw(SCREEN_UPDATE);
}