mirror of
https://github.com/pikami/dwm.git
synced 2025-02-05 15:36:41 +00:00
Implement toggle for fake fullscreen
This commit is contained in:
parent
db085c674b
commit
926d23911c
@ -104,6 +104,7 @@ static Key keys[] = {
|
||||
TAGKEYS( XK_8, 7)
|
||||
TAGKEYS( XK_9, 8)
|
||||
{ MODKEY|ShiftMask, XK_q, quit, {0} },
|
||||
{ MODKEY, XK_F11, togglefakefullscreen, {0} },
|
||||
};
|
||||
|
||||
/* button definitions */
|
||||
|
1
config.h
1
config.h
@ -107,6 +107,7 @@ static Key keys[] = {
|
||||
TAGKEYS( XK_8, 7)
|
||||
TAGKEYS( XK_9, 8)
|
||||
{ MODKEY|ShiftMask, XK_q, quit, {0} },
|
||||
{ MODKEY, XK_F11, togglefakefullscreen, {0} },
|
||||
};
|
||||
|
||||
/* button definitions */
|
||||
|
11
dwm.c
11
dwm.c
@ -242,6 +242,7 @@ static void tag(const Arg *arg);
|
||||
static void tagmon(const Arg *arg);
|
||||
static void tile(Monitor *);
|
||||
static void togglebar(const Arg *arg);
|
||||
static void togglefakefullscreen(const Arg *arg);
|
||||
static void togglefloating(const Arg *arg);
|
||||
static void toggletag(const Arg *arg);
|
||||
static void toggleview(const Arg *arg);
|
||||
@ -1947,6 +1948,16 @@ togglebar(const Arg *arg)
|
||||
arrange(selmon);
|
||||
}
|
||||
|
||||
void
|
||||
togglefakefullscreen(const Arg *arg)
|
||||
{
|
||||
if (!selmon->sel)
|
||||
return;
|
||||
selmon->sel->isfakefullscreen = !selmon->sel->isfakefullscreen;
|
||||
selmon->sel->isfloating = False;
|
||||
arrange(selmon);
|
||||
}
|
||||
|
||||
void
|
||||
togglefloating(const Arg *arg)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user