diff options
author | Quentin Rameau <quinq@fifth.space> | 2021-07-12 23:44:16 +0200 |
---|---|---|
committer | rafa_99 <raroma09@gmail.com> | 2021-07-19 21:59:21 +0100 |
commit | 07b726c37a16d1fcdecadfd1f5650fbf328dcdc5 (patch) | |
tree | c76e889d2f325829d4e9edabbab501d2d93d3532 | |
parent | 4b65a7eb97ea53cbc9d4198b64d39d49c0ec9e3c (diff) |
Add a configuration option for fullscreen locking
Some people are annoyed to have this new behaviour forced for some
application which use fake fullscreen.
-rw-r--r-- | config.def.h | 1 | ||||
-rw-r--r-- | dwm.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/config.def.h b/config.def.h index 985b0cf..b7ac367 100644 --- a/config.def.h +++ b/config.def.h @@ -34,6 +34,7 @@ static const Rule rules[] = { static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */ static const int nmaster = 1; /* number of clients in master area */ static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */ +static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */ static const Layout layouts[] = { /* symbol arrange function */ @@ -922,7 +922,7 @@ focusstack(const Arg *arg) { Client *c = NULL, *i; - if (!selmon->sel || selmon->sel->isfullscreen) + if (!selmon->sel || (selmon->sel->isfullscreen && lockfullscreen)) return; if (arg->i > 0) { for (c = selmon->sel->next; c && !ISVISIBLE(c); c = c->next); |