aboutsummaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-03-02 17:42:49 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-03-02 17:42:49 +0000
commit22ce09eb44db887d32a5b3a88740939b7285c763 (patch)
tree5f661d5d890b09ae335b4e7b8548cd76b7f2d862 /config.h
parentinput: raise window 'move' timeout to 200ms (diff)
config: make CSD user configurable
The user can now configure the following: * Whether to prefer CSDs or SSDs. But note that this is only a hint to the compositor - it may deny our request. Furthermore, not all compositors implement the decoration manager protocol, meaning CSDs will be used regardless of the user configuration (GNOME/mutter being the most prominent one). * Title bar size and color, including transparency * Border size and color, including transparency Also drop support for rendering the CSDs inside the main surface.
Diffstat (limited to 'config.h')
-rw-r--r--config.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/config.h b/config.h
index 3677129f..fa765476 100644
--- a/config.h
+++ b/config.h
@@ -36,6 +36,20 @@ struct config {
} color;
} cursor;
+ struct {
+ enum { CONF_CSD_PREFER_SERVER, CONF_CSD_PREFER_CLIENT } preferred;
+
+ int title_height;
+ int border_width;
+
+ struct {
+ bool title_set;
+ bool border_set;
+ uint32_t title;
+ uint32_t border;
+ } color;
+ } csd;
+
size_t render_worker_count;
char *server_socket_path;
bool presentation_timings;