[gtk+/wip/baedert/gl: 14/111] x11: Fix wrong condition when unsetting transient-for
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/gl: 14/111] x11: Fix wrong condition when unsetting transient-for
- Date: Thu, 21 Dec 2017 17:30:20 +0000 (UTC)
commit 964c6f7d582eb26f4ce8c32b141639367b43622d
Author: Timm Bäder <mail baedert org>
Date: Tue Dec 19 11:53:31 2017 +0100
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.
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 c6d6e30..9300fed 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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]