From eb5a122bc89841393e00725e4c3e0b012c5eafc0 Mon Sep 17 00:00:00 2001 From: Aggelos Tselios Date: Wed, 7 Feb 2024 17:14:29 +0200 Subject: [PATCH] backend/gtk: No longer mark dialog window as popup Fixes that weird GNOME thingy --- src/backend/gtk/nvdialog_dialog_box.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/gtk/nvdialog_dialog_box.c b/src/backend/gtk/nvdialog_dialog_box.c index 26c11d8..6e421ca 100644 --- a/src/backend/gtk/nvdialog_dialog_box.c +++ b/src/backend/gtk/nvdialog_dialog_box.c @@ -48,12 +48,12 @@ nvd_dialog_box_gtk(const char *title, const char *message, NvdDialogType type) { dialog->content = (char*) message; dialog->msg = (char*) title; dialog->type = type; - dialog->window_handle = gtk_window_new(GTK_WINDOW_POPUP); + dialog->window_handle = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_widget_set_hexpand(dialog->window_handle, true); gtk_widget_set_vexpand(dialog->window_handle, true); gtk_window_set_title(GTK_WINDOW(dialog->window_handle), title); - gtk_window_set_resizable(GTK_WINDOW(dialog->window_handle), true); + gtk_window_set_resizable(GTK_WINDOW(dialog->window_handle), false); gtk_window_set_decorated(GTK_WINDOW(dialog->window_handle), true); gtk_window_set_modal(GTK_WINDOW(dialog->window_handle), true);