diff options
author | Luca Bacci <luca.bacci982@gmail.com> | 2022-01-11 14:10:39 +0100 |
---|---|---|
committer | Luca Bacci <luca.bacci982@gmail.com> | 2022-01-11 14:23:10 +0100 |
commit | 0b26e8b8a34be1fd8dd7896aa853535d38521805 (patch) | |
tree | f221325db5ed278fe02fc69028dabbe680c900db | |
parent | 84386c6466eebca68f6db2b0780d28fdce636fb1 (diff) | |
download | gtk+-0b26e8b8a34be1fd8dd7896aa853535d38521805.tar.gz |
GtkFileChooserNativeWin32: add GTK grab only when modal
-rw-r--r-- | gtk/gtkfilechoosernativewin32.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk/gtkfilechoosernativewin32.c b/gtk/gtkfilechoosernativewin32.c index 4d12a847c1..bec7ca4be3 100644 --- a/gtk/gtkfilechoosernativewin32.c +++ b/gtk/gtkfilechoosernativewin32.c @@ -982,8 +982,11 @@ gtk_file_chooser_native_win32_show (GtkFileChooserNative *self) return FALSE; } - data->grab_widget = gtk_invisible_new (); - gtk_grab_add (GTK_WIDGET (data->grab_widget)); + if (gtk_native_dialog_get_modal (GTK_NATIVE_DIALOG (self))) + { + data->grab_widget = gtk_invisible_new (); + gtk_grab_add (GTK_WIDGET (data->grab_widget)); + } return TRUE; } |