the attached patch adds either: internalBorder: <width> or -ib <width> to aterm. thats the the border from the internal frame to where windowdecorations would start. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 37684 [details, diff] patch to add -ib <width> / internalBorder: <width>
This patch doesn't work. Aterm segfaults immediately after starting when it's applied. I've checked it with all the Gentoo patches and without any of them - the results were the same.
i checked it again: a plain aterm + configure + make -> no crash here. i know some guys on the irc who used the patch and it worked immeadiatly. so, perhaps you can provide a bt from gdb? just "doesnt work" isnt enough to nail the problem down :)
Here is some more info: (vanilla aterm + your patch) CFLAGS=-g Configured with: ./configure --enable-transparency --enable-fading --enable-background-image --enable-menubar --enable-graphics --enable-utmp --with-x (it's the same with just './configure'). Debugging session: (gdb) r Starting program: /tmp/aterm-0.4.2/src/aterm Detaching after fork from child process 29107. Program received signal SIGSEGV, Segmentation fault. 0x0805916d in rmemset (p=0x807dbb7, c=0 '\0', len=-210064) at rmemset.c:82 82 *lp++ = c; (gdb) bt #0 0x0805916d in rmemset (p=0x807dbb7, c=0 '\0', len=-210064) at rmemset.c:82 #1 0x0805d87d in scr_expose (x=0, y=34, width=53, height=306) at screen.c:1818 #2 0x0804d59b in process_x_event (ev=0xbffff4b0) at command.c:2414 #3 0x0804cd1e in cmd_getc () at command.c:1981 #4 0x0804f81e in main_loop () at command.c:3459 #5 0x080541a6 in main (argc=1, argv=0xbffff6f4) at main.c:1961 (gdb) frame 1 #1 0x0805d87d in scr_expose (x=0, y=34, width=53, height=306) at screen.c:1818 1818 MEMSET(&(drawn_text[i][part_beg.col]), 0, (gdb) l 1810 1805 MIN_IT(part_beg.col, TermWin.bcol - 1); 1806 MIN_IT(full_beg.col, TermWin.bcol - 1); 1807 MIN_IT(part_end.col, TermWin.bcol - 1); 1808 MIN_IT(full_end.col, TermWin.bcol - 1); 1809 MIN_IT(part_beg.row, TermWin.nrow - 1); 1810 MIN_IT(full_beg.row, TermWin.nrow - 1); 1811 MIN_IT(part_end.row, TermWin.nrow - 1); 1812 MIN_IT(full_end.row, TermWin.nrow - 1); 1813 1814 D_SCREEN((stderr, "scr_expose(x:%d, y:%d, w:%d, h:%d) area (c:%d,r:%d)-(c:%d,r:%d)", x, y, width, height, part_beg.col, part_beg.row, part_end.col, part_end.row)); (gdb) p part_beg $1 = {row = 2, col = 79} (gdb) p part_end $2 = {row = 23, col = 8} (gdb) p full_beg $3 = {row = 3, col = 0} (gdb) p full_end $4 = {row = 23, col = 7}
Fixed patch added to aterm-0.4.2-r11.