Xinqi Bao's Git
projects
/
dwm.git
/ diff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
9188493
)
patch: remove fullscreen
author
Xinqi Bao <
[email protected]
>
Mon, 14 Mar 2022 10:04:46 +0000
(18:04 +0800)
committer
Xinqi Bao <
[email protected]
>
Mon, 14 Mar 2022 10:04:46 +0000
(18:04 +0800)
config.def.h
diff
|
blob
|
history
dwm.c
diff
|
blob
|
history
diff --git
a/config.def.h
b/config.def.h
index
7f8851a
..
e3ad0a5
100644
(file)
--- a/
config.def.h
+++ b/
config.def.h
@@
-108,7
+108,6
@@
static Key keys[] = {
/* layout */
{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
{ MODKEY, XK_m, setlayout, {.v = &layouts[1]} },
/* layout */
{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
{ MODKEY, XK_m, setlayout, {.v = &layouts[1]} },
- { MODKEY, XK_f, fullscreen, {0} },
{ MODKEY, XK_space, zoom, {0} },
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} },
{ MODKEY, XK_space, zoom, {0} },
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} },
diff --git
a/dwm.c
b/dwm.c
index
781e060
..
1348e47
100644
(file)
--- 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 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);
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)
{
void
setgaps(const Arg *arg)
{