toggle layouts

This commit is contained in:
Venelin Dechkov
2026-07-30 11:54:49 +03:00
parent ef7e66f609
commit 07b79c903e
+4
View File
@@ -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)