summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2017-12-14 02:59:58 +0100
committerBenjamin Otte <otte@redhat.com>2017-12-14 03:05:34 +0100
commitd7f34874abe0b53f7eaf18a70d89145e06883ef6 (patch)
tree08fbeed4bfe8f9bb27307c93cfc76ffd7870e52c /gtk
parenta4b42f0b736943be15924963c8d563c44962225f (diff)
downloadgtk+-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.c3
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