diff options
author | Benjamin Otte <otte@redhat.com> | 2017-12-14 02:59:58 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2017-12-14 03:05:34 +0100 |
commit | d7f34874abe0b53f7eaf18a70d89145e06883ef6 (patch) | |
tree | 08fbeed4bfe8f9bb27307c93cfc76ffd7870e52c /gtk | |
parent | a4b42f0b736943be15924963c8d563c44962225f (diff) | |
download | gtk+-d7f34874abe0b53f7eaf18a70d89145e06883ef6.tar.gz |
x11: Make unsetting transient-for work
... and just unset it from GtkWindow instead of fiddling with
properties.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkwindow.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 94c1ba4ad8..a429ba311f 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -3382,8 +3382,7 @@ gtk_window_transient_parent_unrealized (GtkWidget *parent, GtkWidget *window) { if (_gtk_widget_get_realized (window)) - gdk_property_delete (_gtk_widget_get_window (window), - gdk_atom_intern_static_string ("WM_TRANSIENT_FOR")); + gdk_window_set_transient_for (_gtk_widget_get_window (window), NULL); } static void |