diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-12-08 18:53:36 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-12-08 18:53:55 +0000 |
| commit | 386796cec69089b0acb70c5f10f6b049a30aad52 (patch) | |
| tree | f52a6f085d4eb6348f8c7e1ee1bbb6a41478518d /config.c | |
| parent | config: remove support for default.scrollback (diff) | |
config: remove support for default.geometry
Diffstat (limited to 'config.c')
| -rw-r--r-- | config.c | 17 |
1 files changed, 1 insertions, 16 deletions
@@ -436,22 +436,7 @@ parse_section_main(const char *key, const char *value, struct config *conf, conf->app_id = xstrdup(value); } - else if (strcmp(key, "initial-window-size-pixels") == 0 || - strcmp(key, "geometry") == 0 /* deprecated */) - { - if (strcmp(key, "geometry") == 0) { - LOG_WARN("deprecated: %s:%d: [default]: geometry: use 'initial-window-size-pixels' instead'", path, lineno); - - const char fmt[] = "%s:%d: \033[1mgeometry\033[21m, use \033[1minitial-window-size-pixels\033[21m instead"; - char *text = xasprintf(fmt, path, lineno); - - struct user_notification deprecation = { - .kind = USER_NOTIFICATION_DEPRECATED, - .text = text, - }; - tll_push_back(conf->notifications, deprecation); - } - + else if (strcmp(key, "initial-window-size-pixels") == 0) { unsigned width, height; if (sscanf(value, "%ux%u", &width, &height) != 2 || width == 0 || height == 0) { LOG_AND_NOTIFY_ERR( |
