aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tabbed.14
-rw-r--r--tabbed.c12
2 files changed, 14 insertions, 2 deletions
diff --git a/tabbed.1 b/tabbed.1
index 311e048..fa57841 100644
--- a/tabbed.1
+++ b/tabbed.1
@@ -6,6 +6,7 @@ tabbed \- generic tabbed interface
.RB [ \-c ]
.RB [ \-d ]
.RB [ \-k ]
+.RB [ \-m ]
.RB [ \-s ]
.RB [ \-v ]
.RB [ \-g
@@ -61,6 +62,9 @@ for further details.
close foreground tabbed client (instead of tabbed and all clients) when
WM_DELETE_WINDOW is sent.
.TP
+.BI \-m
+Maximize the window.
+.TP
.BI \-n " name"
will set the WM_CLASS attribute to
.I name.
diff --git a/tabbed.c b/tabbed.c
index 26bf459..93c79b9 100644
--- a/tabbed.c
+++ b/tabbed.c
@@ -157,7 +157,7 @@ static int bh, obh, wx, wy, ww, wh;
static unsigned int numlockmask;
static Bool running = True, nextfocus, doinitspawn = True,
fillagain = False, closelastclient = False,
- killclientsfirst = False;
+ killclientsfirst = False, maximize = False;
static Display *dpy;
static DC dc;
static Atom wmatom[WMLast];
@@ -1010,6 +1010,11 @@ setup(void)
wh = 600;
isfixed = 0;
+ if (maximize) {
+ ww = DisplayWidth(dpy, screen);
+ wh = DisplayHeight(dpy, screen);
+ }
+
if (geometry) {
tx = ty = tw = th = 0;
bitm = XParseGeometry(geometry, &tx, &ty, (unsigned *)&tw,
@@ -1289,7 +1294,7 @@ xsettitle(Window w, const char *str)
void
usage(void)
{
- die("usage: %s [-dfksv] [-g geometry] [-n name] [-p [s+/-]pos]\n"
+ die("usage: %s [-dfkmsv] [-g geometry] [-n name] [-p [s+/-]pos]\n"
" [-r narg] [-o color] [-O color] [-t color] [-T color]\n"
" [-u color] [-U color] command...\n", argv0);
}
@@ -1318,6 +1323,9 @@ main(int argc, char *argv[])
case 'k':
killclientsfirst = True;
break;
+ case 'm':
+ maximize = True;
+ break;
case 'n':
wmname = EARGF(usage());
break;