diff options
| author | bakkeby <[email protected]> | 2022-01-10 17:18:45 +0100 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2022-01-10 17:18:45 +0100 |
| commit | 0a4e6de5977bd57f1bdd22146c912940e09bc41d (patch) | |
| tree | 65931fc7c2dc027ab0e9685d8b49ae36cad3bf09 | |
| parent | 0350db1b3917d74ac0565fff3d5537f246ab4ff0 (diff) | |
| download | dwm-flexipatch-0a4e6de5977bd57f1bdd22146c912940e09bc41d.tar.gz dwm-flexipatch-0a4e6de5977bd57f1bdd22146c912940e09bc41d.zip | |
Add a configuration option for fullscreen locking
Some people are annoyed to have this new behaviour forced for some
application which use fake fullscreen.
Ref. https://git.suckless.org/dwm/commit/138b405f0c8aa24d8a040cc1a1cf6e3eb5a0ebc7.html
| -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 61dd14a..469f70f 100644 --- a/config.def.h +++ b/config.def.h @@ -567,6 +567,7 @@ static const int nmaster = 1; /* number of clients in master area */ static const int nstack = 0; /* number of clients in primary stack area */ #endif // FLEXTILE_DELUXE_LAYOUT static const int resizehints = 0; /* 1 means respect size hints in tiled resizals */ +static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */ #if DECORATION_HINTS_PATCH static const int decorhints = 1; /* 1 means respect decoration hints */ #endif // DECORATION_HINTS_PATCH @@ -2018,7 +2018,7 @@ focusstack(const Arg *arg) if (!selmon->sel || (selmon->sel->isfullscreen && !selmon->sel->fakefullscreen)) return; #else - if (!selmon->sel || selmon->sel->isfullscreen) + if (!selmon->sel || (selmon->sel->isfullscreen && lockfullscreen)) return; #endif // LOSEFULLSCREEN_PATCH #if BAR_WINTITLEACTIONS_PATCH |
