Re: [dev] portable photoshop-like lite application based on C?

2013-12-02 Thread Johannes Hofmann
Hi, you could also have a look at my old project http://flpsed.org/flimp.html It's a minimal graphical frontend for command line image processing tools. It tries to keep the results of the individual processing steps aligned, so you can compare the results easily by switching tabs. Regards, Johan

[dev] [st][patch] use int instead of long for color

2013-11-14 Thread Johannes Hofmann
Hi, here is a patch that replaces long with int. It saves some memory on 64bit systems. Regards, Johannes diff --git a/st.c b/st.c index fda7044..51ecd21 100644 --- a/st.c +++ b/st.c @@ -179,9 +179,9 @@ typedef unsigned short ushort; typedef struct { char c[UTF_SIZ]; /* character code

[dev] [st] why is Glyph.fg, Glyph.bg long?

2013-11-13 Thread Johannes Hofmann
Hi, why is a type that can have a different number of bits on 32/64 bit systems used for Glyph.fg and Glyph.bg? Wouldn't unsigned int be enough? Regards, Johannes

[dev] Re: st slow startup

2013-05-11 Thread Johannes Hofmann
Hi, in my previous patch I was missing some conditions in xunloadfonts() which crashes st when changing fontsize. Sorry for that. Johannes diff --git a/st.c b/st.c index 56955a3..c1e806e 100644 --- a/st.c +++ b/st.c @@ -369,6 +369,7 @@ static void xresettitle(void); static void xseturgency(in

[dev] st slow startup

2013-05-09 Thread Johannes Hofmann
Hi, as others also have noticed, Xft based st starts slow on some systems. For me it helps if FcFontSort() is done lazily as shown below. Regards, Johannes diff --git a/st.c b/st.c index 50090a4..425f669 100644 --- a/st.c +++ b/st.c @@ -2643,10 +2643,7 @@ xloadfont(Font *f, FcPattern *pattern)

[dev] [st] minor fix

2013-05-06 Thread Johannes Hofmann
Hi, there is a small glitch in the error handling of the select() call in st.c. See patch below. Regards, Johannes diff --git a/st.c b/st.c index 5251e70..689de26 100644 --- a/st.c +++ b/st.c @@ -3481,7 +3481,7 @@ run(void) { FD_SET(cmdfd, &rfd); FD_SET(xfd, &rfd)

[dev] [dwm] ncol layout for nmaster patch

2010-12-10 Thread Johannes Hofmann
Hi, for today's widescreen monitors I find it quite nice to have two master areas side by side. Attached extended nmaster.c makes this possible with the ncol layout. Include nmaster.c as usual and add an entry { "||=", ncol }, to layouts. Cheers, Johannes enum {MaxMon = 8}; static int