lv2 / pugl

A minimal portable API for embeddable GUIs
https://gitlab.com/lv2/pugl/
ISC License
174 stars 34 forks source link

X11: Only call XSetTransientForHint for valid windows #117

Closed falkTX closed 10 months ago

falkTX commented 10 months ago

While testing a few different WMs, noticed this warning from metacity:

(metacity:586692): metacity-WARNING **: 15:11:43.796: Invalid WM_TRANSIENT_FOR window 0x0 specified for 0x5c00002 (Cardinal).

PR fixes it by ensuring the transient parent is valid (non-zero).

drobilla commented 10 months ago

Merged as 5d8b3d3, thanks.