I'm experiencing "crashes" (application actually calls exit) when closing some dialogs and combo-box menus under Linux.
It only seems to happen on plugins, so my guess is that it's something related to juce usage of separate threads for UI stuff.
Maybe a lock missing somewhere.
The error is:
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 12 (X_ConfigureWindow)
Serial number of failed request: 2540
Current serial number in output stream: 2542
I got some free time and was able to find the culprit for this.
It happens when there's temporary windows (caused by some menu popup or tooltip) inside a modal window.
juce is calling XRestackWindows to organize the window stacking order, but that call is not valid for temporary windows.
Sorry that we didn't reply to this one faster. Fabian is our "linux love" guy, and as far as I remember he was working on that issue (or something related). But he's away on holidays this week, and the rest of us don't really have a clue what's going on. Do you mind waiting until next week when he's back?
I think you may be confusing forum threads. This forum thread is about the X11 crash. I did use your complete patch for that crash.
I did see all of the patch to which you refer above which seems to be a fix for the alwaysOnTop bug. However I did not use any of it as the fix doesn't work for me on Ubuntu 14.04 LTS and breaks numerous other Linux tests. I decided to go with a different approach (remove the "XRaiseWIndow" call).
Please let me know if I am confusing something here.
Also let me know if there are any other bugs that my fix does not address regarding linux windowing.
Sorry, I just mentioned those changes because the other thread didn't get any attention.
The new stuff I just posted is to fix the window creation of some pop-up menus.
It's hard to see on regular desktops, but on tiling WMs it's very annoying (the popup will be in a separate window far away from where you clicked).
It would be useful to know which tiling window manager is causing problems, just so that I can reproduce this. I’ve tested this with Xmonad and everything seems to work there. However, I’m not really all to familiar with tiling window manages, so I might not notice incorrect behaviour.