(wrong string) élien Aptel

From: <hg_AT_suckless.org>
Date: Thu, 16 Feb 2012 01:07:12 +0100 (CET)

changeset: 234:ecc6e6f67f35
user: Aurélien Aptel <aurelien.aptel_AT_gmail.com>
date: Wed Feb 15 19:33:48 2012 +0100
files: TODO config.def.h st.c
description:
show dark cursor when unfocused.


diff -r d57038a89377 -r ecc6e6f67f35 TODO
--- a/TODO Wed Feb 15 19:11:07 2012 +0100
+++ b/TODO Wed Feb 15 19:33:48 2012 +0100
_AT_@ -10,10 +10,15 @@
 
 * clean selection code
 * clean and complete terminfo entry
-* fix shift up/down (shift selection in emacs)
 * fast drawing
 * ...
 
+bugs
+----
+
+* handle XOpenMI() errors
+* fix shift up/down (shift selection in emacs)
+
 misc
 ----
 
diff -r d57038a89377 -r ecc6e6f67f35 config.def.h
--- a/config.def.h Wed Feb 15 19:11:07 2012 +0100
+++ b/config.def.h Wed Feb 15 19:33:48 2012 +0100
_AT_@ -32,13 +32,15 @@
         
         /* more colors can be added to use with DefaultXX */
         "#cccccc",
+ "#333333",
 };
 
 /* Default colors (colorname index)
- foreground, background, cursor */
-#define DefaultFG 7
-#define DefaultBG 0
-#define DefaultCS 16
+ foreground, background, cursor, unfocused cursor */
+#define DefaultFG 7
+#define DefaultBG 0
+#define DefaultCS 16
+#define DefaultUCS 17
 
 /* Special keys (change & recompile st.info accordingly)
    Keep in mind that kpress() in st.c hardcodes some keys.
diff -r d57038a89377 -r ecc6e6f67f35 st.c
--- a/st.c Wed Feb 15 19:11:07 2012 +0100
+++ b/st.c Wed Feb 15 19:33:48 2012 +0100
_AT_@ -1826,10 +1826,14 @@
         xcopy(oldx, oldy, 1, 1);
 
         /* draw the new one */
- if(!(term.c.state & CURSOR_HIDE) && (xw.state & WIN_FOCUSED)) {
- sl = utf8size(g.c);
+ if(!(term.c.state & CURSOR_HIDE)) {
+ if(!(xw.state & WIN_FOCUSED))
+ g.bg = DefaultUCS;
+
                 if(IS_SET(MODE_REVERSE))
                         g.mode |= ATTR_REVERSE, g.fg = DefaultCS, g.bg = DefaultFG;
+
+ sl = utf8size(g.c);
                 xdraws(g.c, g, term.c.x, term.c.y, 1, sl);
                 oldx = term.c.x, oldy = term.c.y;
         }
Received on Thu Feb 16 2012 - 01:07:12 CET

This archive was generated by hypermail 2.3.0 : Thu Feb 16 2012 - 01:12:06 CET