[hackers] [st] s/hasfocus/focus/ for consistency. || Aurélien Aptel

From: <hg_AT_suckless.org>
Date: Sun, 12 Sep 2010 18:16:18 +0000 (UTC)

changeset: 148:1cd0262c5b69
tag: tip
user: Aurélien Aptel <aurelien.aptel_AT_gmail.com>
date: Sat Sep 11 16:07:36 2010 +0200
files: st.c
description:
s/hasfocus/focus/ for consistency.

diff -r cf4dab13f0e0 -r 1cd0262c5b69 st.c
--- a/st.c Sat Sep 11 16:05:57 2010 +0200
+++ b/st.c Sat Sep 11 16:07:36 2010 +0200
@@ -114,7 +114,7 @@
         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 @@
                         tnewline();
                         break;
                 case '\a':
- if(!xw.hasfocus)
+ if(!xw.focus)
                                 xseturgency(1);
                         break;
                 case '\033':
@@ -1286,7 +1286,7 @@
                 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);
 }
Received on Sun Sep 12 2010 - 20:16:18 CEST

This archive was generated by hypermail 2.2.0 : Sun Sep 12 2010 - 20:24:05 CEST