X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/9188493674d74f8623b38224cf8d61842287ae88..6a95d0428757af844c315e357d743e3d42ae72b5:/dwm.c diff --git a/dwm.c b/dwm.c index 781e060..1348e47 100644 --- a/dwm.c +++ b/dwm.c @@ -214,7 +214,6 @@ static void setclientstate(Client *c, long state); static void setfocus(Client *c); static void setfullscreen(Client *c, int fullscreen); static void setgaps(const Arg *arg); -static void fullscreen(const Arg *arg); static void setlayout(const Arg *arg); static void setmfact(const Arg *arg); static void setup(void); @@ -1592,19 +1591,6 @@ setfullscreen(Client *c, int fullscreen) } } -Layout *last_layout; -void -fullscreen(const Arg *arg) -{ - if (selmon->showbar) { - for(last_layout = (Layout *)layouts; last_layout != selmon->lt[selmon->sellt]; last_layout++); - setlayout(&((Arg) { .v = &layouts[2] })); - } else { - setlayout(&((Arg) { .v = last_layout })); - } - togglebar(arg); -} - void setgaps(const Arg *arg) {