brummer10 / Fluida.lv2

Fluidsynth as LV2 plugin
GNU General Public License v2.0
33 stars 4 forks source link

File browser window does not set transient hint #6

Closed falkTX closed 3 years ago

falkTX commented 3 years ago

If the host has the plugin GUI has "transient" to itself (that is, on top of the base host window), the file browser window can appear behind the host and plugin GUI, making it hard to find. Please add the transient window id to the parent of the plugin UI (that is, the Window it embeds into), so Window managers can properly place/stack the window.

brummer10 commented 3 years ago

The usual XSetTransientForHint() didn't work for embedded windows, so I need to use XChangeProperty() and set _NET_WM_STATE_ABOVE.

falkTX commented 3 years ago

you cant set it for the embed window, but you have access to the host one, because the plugin embeds in it. so you can set the transient hint to that

brummer10 commented 3 years ago

I've tried that as well, but didn't get it to work. Set _NET_WM_STATE_ABOVE works well here.