toggle layouts
This commit is contained in:
@@ -1513,6 +1513,10 @@ setfullscreen(Client *c, int fullscreen)
|
||||
void
|
||||
setlayout(const Arg *arg)
|
||||
{
|
||||
/* Toggle between previous */
|
||||
if(arg && arg->v == selmon->lt[selmon->sellt])
|
||||
arg = NULL;
|
||||
|
||||
if (!arg || !arg->v || arg->v != selmon->lt[selmon->sellt])
|
||||
selmon->sellt ^= 1;
|
||||
if (arg && arg->v)
|
||||
|
||||
Reference in New Issue
Block a user