[dev] [webpage] Some pages are coming up blank
The webpage for a number of dwm patches - for example, attachabove and push - are blank. However, there are corresponding .md files in the hg repo, and so I expect there should be content there. I figured it was worth reporting. signature.asc Description: Digital signature
Re: [dev] [surf] [patch] Close stdout after printing XID
Abby Cedar writes: > Need to close stdout otherwise it can't be used in a script until surf > finishes. Am I missing something? Why not just use flose(stdout)? -- \ Troels /\ Henriksen
Re: [dev] [dwm] Why am I having a gap between the master window and the others?
yeah, all terminals, all apps which base their geometry on the size of monospaced fonts (ie geany, gvim, simple IDEs etc), mplayer adjusts itself to the video dimensions, so any apps that do that, etc On 18 February 2012 15:00, Bjartur Thorlacius wrote: > Þann fim 16.feb 2012 20:08, skrifaði pmarin: > >> Now a new question arose. Which applications need to have resizehints >> set to True? >> > MPlayer, for example. > > -- *Ivan c00kiemon5ter V Kanakarakis *
Re: [dev] [surf] [patch] Close stdout after printing XID
On Sat, Feb 18, 2012 at 14:50, Abby Cedar wrote: > Need to close stdout otherwise it can't be used in a script until surf > finishes. > > To test, try the below before and after the patch. > > xid=`surf -x &`; echo $xid You are right. The following works around the problem, but is not very elegant; xid=`surf -x | sed 1q &`; echo $xid -Truls
[dev] [surf] [patch] Close stdout after printing XID
Need to close stdout otherwise it can't be used in a script until surf finishes. To test, try the below before and after the patch. xid=`surf -x &`; echo $xid Patch: --- surf.c.orig 2012-02-19 00:29:24.735959037 +1100 +++ surf.c 2012-02-19 00:37:23.615959945 +1100 @@ -548,6 +548,8 @@ gdk_display_sync(gtk_widget_get_display(c->win)); printf("%u\n", (guint)GDK_WINDOW_XID(GTK_WIDGET(c->win)->window)); fflush(NULL); + if(freopen("/dev/null", "w", stdout) == NULL) + die("Can't redirect stdout to /dev/null"); } return c; } -- Abby --- surf.c.orig 2012-02-19 00:29:24.735959037 +1100 +++ surf.c 2012-02-19 00:37:23.615959945 +1100 @@ -548,6 +548,8 @@ gdk_display_sync(gtk_widget_get_display(c->win)); printf("%u\n", (guint)GDK_WINDOW_XID(GTK_WIDGET(c->win)->window)); fflush(NULL); + if(freopen("/dev/null", "w", stdout) == NULL) + die("Can't redirect stdout to /dev/null"); } return c; }
Re: [dev] [dwm] Why am I having a gap between the master window and the others?
Þann fim 16.feb 2012 20:08, skrifaði pmarin: Now a new question arose. Which applications need to have resizehints set to True? MPlayer, for example.
Re: [dev] [dwm] Why am I having a gap between the master window and the others?
On Thu, Feb 16, 2012 at 09:08:14PM +0100, pmarin wrote: > Thanks. > > Now a new question arose. Which applications need to have resizehints > set to True? > The resizehints thing is afaict a global setting in config.h and you should set it if you want your terminals fitting into the gap in which they are placed. Resizing terminals is usually done by taking a multiple of the font with plus maybe a border, which may not be an amount with which your monitor width is dividable by. cheers! mar77i