all repos — st @ 6faedce53a8de8a81da1ba045ffbc2b7603128cd

st (suckless terminal) config

s/hasfocus/focus/ for consistency.
Aurélien Aptel aurelien.aptel@gmail.com
commit

6faedce53a8de8a81da1ba045ffbc2b7603128cd

parent

ab7037cb33b4be4d16e3197d907066ed5b8ab16b

1 files changed, 4 insertions(+), 4 deletions(-)

jump to
M st.cst.c

@@ -114,7 +114,7 @@ int bufw; /* pixmap width */

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 @@ case '\n':

tnewline(); break; case '\a': - if(!xw.hasfocus) + if(!xw.focus) xseturgency(1); break; case '\033':

@@ -1286,7 +1286,7 @@ else

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 @@ }

void focus(XEvent *ev) { - if((xw.hasfocus = ev->type == FocusIn)) + if((xw.focus = ev->type == FocusIn)) xseturgency(0); draw(SCREEN_UPDATE); }