summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2021-08-23 05:55:32 +0200
committerBenjamin Otte <otte@redhat.com>2021-08-23 07:08:25 +0200
commita2a402a926c273aaafd57a9ae209f2eae709e533 (patch)
treea7837bc77e54b113732d5ace596288dde18c53aa
parent6b733d294354c349b4b5ef7d689c0b2ef162f797 (diff)
downloadgtk+-a2a402a926c273aaafd57a9ae209f2eae709e533.tar.gz
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.
-rw-r--r--gtk/gtkfontbutton.c1
1 files changed, 1 insertions, 0 deletions
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);