Add a configuration option for fullscreen locking

Some people are annoyed to have this new behaviour forced for some
application which use fake fullscreen.
このコミットが含まれているのは:
Quentin Rameau 2021-07-12 23:44:16 +02:00 committed by Leonardo Hernández Hernández
コミット 326eee1444
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: E538897EE11B9624
2個のファイルの変更2行の追加1行の削除

ファイルの表示

@ -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};

2
dwl.c
ファイルの表示

@ -1177,7 +1177,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) {