From c4ea3105cd8b7aa2a37e095e5ddb3e9a62bcaf17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Techet?= Date: Fri, 19 Nov 2021 16:26:40 +0100 Subject: [PATCH] vimode: Set default height of excmd popup to a small number On macOS there seems to be some bigger default height so the excmd popup is too tall. When default-height is set to 1, it is automatically resized to the height of the text entry it contains and has correct size on both linux and macOS. --- vimode/src/excmd-prompt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/vimode/src/excmd-prompt.c b/vimode/src/excmd-prompt.c index 93848ca88..44e9d434c 100644 --- a/vimode/src/excmd-prompt.c +++ b/vimode/src/excmd-prompt.c @@ -225,6 +225,7 @@ void ex_prompt_init(GtkWidget *parent_window, CmdContext *c) prompt = g_object_new(GTK_TYPE_WINDOW, "decorated", FALSE, "default-width", PROMPT_WIDTH, + "default-height", 1, "transient-for", parent_window, "window-position", GTK_WIN_POS_CENTER_ON_PARENT, "type-hint", GDK_WINDOW_TYPE_HINT_DIALOG,