aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfalkTX <falktx@falktx.com>2023-10-22 15:14:57 +0200
committerDavid Robillard <d@drobilla.net>2023-10-22 11:16:13 -0400
commit5d8b3d3b46b1c288e87079dc531694f4377eedc4 (patch)
treebc90d55b27fd27a9bc0fddb60c21f2e4ef03f231
parentd8b116a95176ee130dbd4baabe4b6bd03d51bce3 (diff)
downloadpugl-5d8b3d3b46b1c288e87079dc531694f4377eedc4.tar.gz
pugl-5d8b3d3b46b1c288e87079dc531694f4377eedc4.tar.bz2
pugl-5d8b3d3b46b1c288e87079dc531694f4377eedc4.zip
X11: Only call XSetTransientForHint for valid windows
Signed-off-by: falkTX <falktx@falktx.com>
-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);
}