diff options
| author | Shivesh Mandalia <mail@shivesh.org> | 2021-09-24 09:15:40 +0100 |
|---|---|---|
| committer | Shivesh Mandalia <mail@shivesh.org> | 2021-09-24 09:15:40 +0100 |
| commit | d769b04e6ba94803dbc94653611cb88390a3d127 (patch) | |
| tree | 898c01ef0f2f77bb3eedad2f836aaad2a264b71b /tabbed.c | |
| parent | cae7d561524ec143baa849237b5a7bbb7051502e (diff) | |
| download | tabbed-d769b04e6ba94803dbc94653611cb88390a3d127.tar.gz tabbed-d769b04e6ba94803dbc94653611cb88390a3d127.zip | |
Add an argument to launch maximized
Diffstat (limited to 'tabbed.c')
| -rw-r--r-- | tabbed.c | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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; |
