Re: [dev] [dwm] Fullscreen Layout

From: Ruben Gonzalez Arnau <rga_AT_sdf.lonestar.org>
Date: Wed, 17 Aug 2011 16:43:47 +0200

On 14/08/11 22:03, Bastien Dejean wrote:
> Hi,
>
> Any idea on how to implement a fullscreen layout?
>
> Cheers,

From dwm-hiltjo version:

http://www.codemadness.nl/downloads/projects/dwm/

/* Same as monocle, just never draw borders. */
void
fullscreen(Monitor *m) {
         Client *c;

         for(c = nexttiled(m->clients); c; c = nexttiled(c->next)) {
                 /* Don't draw borders. */
                 c->bw = 0;
                 resize(c, m->wx, m->wy, m->ww, m->wh, False);
                 /* Restore borders. */
                 c->bw = borderpx;
         }
}

You can also automatically hide bar (MOKEY + b), using something like this:

/* hide bar */
if (selmon->showbar)
     togglebar(NULL);

Hope it helps.

-- 
rga_AT_sdf.lonestar.org
Received on Wed Aug 17 2011 - 16:43:47 CEST

This archive was generated by hypermail 2.2.0 : Wed Aug 17 2011 - 17:00:05 CEST