mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-22 05:33:45 -04:00
conf: csd.preferred can now be set to ‘none’
When csd.preferred == none, we will request CSDs from the compositor, but internally render as if we are using SSDs. That is, we don’t render any window decorations at all. Note that some compositors may ignore our request to use CSDs, and still render SSDs for us. Closes #163
This commit is contained in:
parent
e54adbfa7c
commit
6ff97128fc
5 changed files with 46 additions and 20 deletions
6
config.c
6
config.c
|
|
@ -813,8 +813,12 @@ parse_section_csd(const char *key, const char *value, struct config *conf,
|
|||
conf->csd.preferred = CONF_CSD_PREFER_SERVER;
|
||||
else if (strcmp(value, "client") == 0)
|
||||
conf->csd.preferred = CONF_CSD_PREFER_CLIENT;
|
||||
else if (strcmp(value, "none") == 0)
|
||||
conf->csd.preferred = CONF_CSD_PREFER_NONE;
|
||||
else {
|
||||
LOG_AND_NOTIFY_ERR("%s:%d: csd.preferred: expected either 'server' or 'client'", path, lineno);
|
||||
LOG_AND_NOTIFY_ERR(
|
||||
"%s:%d: csd.preferred: expected either "
|
||||
"'server', 'client' or 'none'", path, lineno);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue