From 326a67e18f638bd386e553ee83ad28f5f4034aa1 Mon Sep 17 00:00:00 2001 From: "Torrance, Douglas" Date: Sat, 14 Jan 2023 22:22:38 +0000 Subject: [PATCH] Add new "KeepDockOnPrimaryHead" option Once implemented, this will keep the dock on the primary head (when there are multiple heads) when YES. The default value is NO, the current behavior, i.e., treat all monitors together as one large screen. --- src/WindowMaker.h | 1 + src/defaults.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/WindowMaker.h b/src/WindowMaker.h index fa04093b..e1b49295 100644 --- a/src/WindowMaker.h +++ b/src/WindowMaker.h @@ -405,6 +405,7 @@ extern struct WPreferences { char ignore_gtk_decoration_hints; char dont_blink; /* do not blink icon selection */ + char keep_dock_on_primary_head; /* keep dock on primary head */ /* Appearance options */ char new_style; /* Use newstyle buttons */ diff --git a/src/defaults.c b/src/defaults.c index 64ce2404..00c05d2c 100644 --- a/src/defaults.c +++ b/src/defaults.c @@ -521,6 +521,8 @@ WDefaultEntry optionList[] = { &wPreferences.minipreview_size, getInt, NULL, NULL, NULL}, {"IgnoreGtkHints", "NO", NULL, &wPreferences.ignore_gtk_decoration_hints, getBool, NULL, NULL, NULL}, + {"KeepDockOnPrimaryHead", "NO", NULL, + &wPreferences.keep_dock_on_primary_head, getBool, NULL, NULL, NULL}, /* style options */