diff options
author | Quentin Rameau <quinq@fifth.space> | 2021-07-12 23:44:16 +0200 |
---|---|---|
committer | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-03-23 18:22:40 -0600 |
commit | b42abeac69b08558c06611a725a997f4ad0affd8 (patch) | |
tree | 73a9bba4682f7db301dd627f1be229235f6269fd | |
parent | 5a1debb5f0fec4f149f8a4490828116e3b1f3b9c (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-- | dwl.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/config.def.h b/config.def.h index 8408659..539dba6 100644 --- a/config.def.h +++ b/config.def.h @@ -1,6 +1,7 @@ /* appearance */ static const int sloppyfocus = 1; /* focus follows mouse */ static const unsigned int borderpx = 1; /* border pixel of windows */ +static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */ static const float rootcolor[] = {0.3, 0.3, 0.3, 1.0}; static const float bordercolor[] = {0.5, 0.5, 0.5, 1.0}; static const float focuscolor[] = {1.0, 0.0, 0.0, 1.0}; @@ -1050,7 +1050,7 @@ focusstack(const Arg *arg) { /* Focus the next or previous client (in tiling order) on selmon */ Client *c, *sel = selclient(); - if (!sel) + if (!sel || (sel->isfullscreen && lockfullscreen)) return; if (arg->i > 0) { wl_list_for_each(c, &sel->link, link) { |