From: Benjamin Otte Date: Mon, 23 Aug 2021 03:55:32 +0000 (+0200) Subject: fontbutton: Make sure the window is on the same display X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2^2~124^2~9 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=eec783b92263fe1f99d52bdb6441ae37f58715ce;p=gtk4.git fontbutton: Make sure the window is on the same display We don't want the font buttons created by the inspector to run on the default display. --- diff --git a/gtk/gtkfontbutton.c b/gtk/gtkfontbutton.c index a207c5a403..aad99d186b 100644 --- a/gtk/gtkfontbutton.c +++ b/gtk/gtkfontbutton.c @@ -968,6 +968,7 @@ gtk_font_button_clicked (GtkButton *button, font_button->font_dialog = gtk_font_chooser_dialog_new (font_button->title, NULL); gtk_window_set_hide_on_close (GTK_WINDOW (font_button->font_dialog), TRUE); gtk_window_set_modal (GTK_WINDOW (font_button->font_dialog), font_button->modal); + gtk_window_set_display (GTK_WINDOW (font_button->font_dialog), gtk_widget_get_display (GTK_WIDGET (button))); font_dialog = GTK_FONT_CHOOSER (font_button->font_dialog);