diff options
| author | Quentin Rameau <quinq@fifth.space> | 2021-07-12 23:44:16 +0200 |
|---|---|---|
| committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2021-07-14 11:26:37 +0200 |
| commit | 138b405f0c8aa24d8a040cc1a1cf6e3eb5a0ebc7 (patch) | |
| tree | 916ae3ca84f31fc7d07ca272033986acbd28c861 | |
| parent | Do not allow focus to drift from fullscreen client via focusstack() (diff) | |
| download | dwm-138b405f0c8aa24d8a040cc1a1cf6e3eb5a0ebc7.tar.gz dwm-138b405f0c8aa24d8a040cc1a1cf6e3eb5a0ebc7.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.
| -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 1c0b587..a2ac963 100644 --- a/config.def.h +++ b/config.def.h | |||
| @@ -35,6 +35,7 @@ static const Rule rules[] = { | |||
| 35 | static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */ | 35 | static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */ |
| 36 | static const int nmaster = 1; /* number of clients in master area */ | 36 | static const int nmaster = 1; /* number of clients in master area */ |
| 37 | static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */ | 37 | static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */ |
| 38 | static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */ | ||
| 38 | 39 | ||
| 39 | static const Layout layouts[] = { | 40 | static const Layout layouts[] = { |
| 40 | /* symbol arrange function */ | 41 | /* symbol arrange function */ |
| @@ -835,7 +835,7 @@ focusstack(const Arg *arg) | |||
| 835 | { | 835 | { |
| 836 | Client *c = NULL, *i; | 836 | Client *c = NULL, *i; |
| 837 | 837 | ||
| 838 | if (!selmon->sel || selmon->sel->isfullscreen) | 838 | if (!selmon->sel || (selmon->sel->isfullscreen && lockfullscreen)) |
| 839 | return; | 839 | return; |
| 840 | if (arg->i > 0) { | 840 | if (arg->i > 0) { |
| 841 | for (c = selmon->sel->next; c && !ISVISIBLE(c); c = c->next); | 841 | for (c = selmon->sel->next; c && !ISVISIBLE(c); c = c->next); |
