aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/x11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/x11.c b/src/x11.c
index ace1ead..19633e3 100644
--- a/src/x11.c
+++ b/src/x11.c
@@ -2059,7 +2059,7 @@ puglSetTransientParent(PuglView* const view, const PuglNativeView parent)
view->transientParent = parent;
- if (view->impl->win) {
+ if (view->impl->win && view->transientParent) {
XSetTransientForHint(
display, view->impl->win, (Window)view->transientParent);
}