diff options
author | Timm Bäder <mail@baedert.org> | 2017-12-19 11:53:31 +0100 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2017-12-21 18:25:51 +0100 |
commit | 964c6f7d582eb26f4ce8c32b141639367b43622d (patch) | |
tree | 85bc89754054b3c60cf375f9ff67d6d331d073d3 | |
parent | 1c3f343baf81afa4abec3c0dc3ea6b1fd25f6c6e (diff) | |
download | gtk+-964c6f7d582eb26f4ce8c32b141639367b43622d.tar.gz |
x11: Fix wrong condition when unsetting transient-for
Setting a new transient-for parent is only possible if the given parent
window is valid, not when it is NULL or valid.
-rw-r--r-- | gdk/x11/gdkwindow-x11.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c index c6d6e30f7b..9300fed6d0 100644 --- a/gdk/x11/gdkwindow-x11.c +++ b/gdk/x11/gdkwindow-x11.c @@ -2453,7 +2453,7 @@ gdk_x11_window_set_transient_for (GdkWindow *window, return; /* XSetTransientForHint() doesn't allow unsetting, so do it manually */ - if (!parent || !GDK_WINDOW_DESTROYED (parent)) + if (parent && !GDK_WINDOW_DESTROYED (parent)) XSetTransientForHint (GDK_WINDOW_XDISPLAY (window), GDK_WINDOW_XID (window), GDK_WINDOW_XID (parent)); |