Add a configuration option for fullscreen locking
138b405f
Some people are annoyed to have this new behaviour forced for some application which use fake fullscreen.
2 file(s) · +2 −1
Some people are annoyed to have this new behaviour forced for some application which use fake fullscreen.
| 35 | 35 | static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */ |
|
| 36 | 36 | static const int nmaster = 1; /* number of clients in master area */ |
|
| 37 | 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 | 40 | static const Layout layouts[] = { |
|
| 40 | 41 | /* symbol arrange function */ |
| 835 | 835 | { |
|
| 836 | 836 | Client *c = NULL, *i; |
|
| 837 | 837 | ||
| 838 | - | if (!selmon->sel || selmon->sel->isfullscreen) |
|
| 838 | + | if (!selmon->sel || (selmon->sel->isfullscreen && lockfullscreen)) |
|
| 839 | 839 | return; |
|
| 840 | 840 | if (arg->i > 0) { |
|
| 841 | 841 | for (c = selmon->sel->next; c && !ISVISIBLE(c); c = c->next); |