Thank you very much Martin for your kind reply!

But I still cant make it work, Gentoo fails when applying the patch,
apparently because of the lines below

diff --git a/st.h b/st.h
index 44d4938..11a8174 100644
--- a/st.h
+++ b/st.h
@@ -2,6 +2,7 @@

 /* Arbitrary sizes */
 #define UTF_SIZ       4
+#define OPAQUE        0xff

 /* macros */
 #define MIN(a, b)              ((a) < (b) ? (a) : (b))
@@ -17,6 +18,8 @@
                                (t1.tv_nsec-t2.tv_nsec)/1E6)
 #define MODBIT(x, set, bit)    ((set) ? ((x) |= (bit)) : ((x) &= ~(bit)))

+#define USE_ARGB (alpha != OPAQUE && opt_embed == NULL)
+
 #define TRUECOLOR(r,g,b)       (1 << 24 | (r) << 16 | (g) << 8 | (b))
 #define IS_TRUECOL(x)          (1 << 24 & (x))

@@ -134,6 +137,7 @@ typedef struct {
        int w, h; /* window width and height */
        int ch; /* char height */
        int cw; /* char width  */
+       int depth; /*  bit depth */
        char state; /* focus, redraw, visible */
        int cursor; /* cursor style */
 } TermWindow;


which exists in your copy but is not present in st-alpha-0.7.diff from
https://st.suckless.org/patches/alpha/. (Very very very very very) noob
question: what is the difference between files config.def.h and st.h?
Because in gentoo I only see st-0.7, which I have been assuming to be
config.def.h.

Thank you again!

On Mon, Nov 20, 2017 at 5:22 PM, Martin Kühne <[email protected]> wrote:

> I'm maintaining my copy of the patch on
> https://github.com/mar77i/dotfiles/tree/master/abs/st-git
>
> cheers!
> mar77i
>
>

Reply via email to