Re: [dev] Fullscreen keyboard shortcut in dwm like in wmii

From: Stefan Mark <mark_AT_unserver.de>
Date: Thu, 22 Jul 2010 11:06:31 +0200

I use this function, it makes a client float and maximize.

void
togglemax(const Arg *arg) {
         Client *c;
         if(!(c = selmon->sel))
                 return;
         Monitor *m = c->mon;
         c->isfloating = !c->isfloating || c->isfixed;
         if(c->isfloating)
                 resize(c, m->wx, m->wy, m->ww - 2 * c->bw, m->wh - 2 *
c->bw, True);
         arrange(selmon);
}

Bar and Border remain, but if you change

                 resize(c, m->wx, m->wy, m->ww - 2 * c->bw, m->wh - 2 *
c->bw, True);

to

                 resize(c, m->wx, m->wy, m->ww, m->wh, True);

it should do a fullscreen (not tested).
Received on Thu Jul 22 2010 - 11:06:31 CEST

This archive was generated by hypermail 2.2.0 : Thu Jul 22 2010 - 11:12:02 CEST