Fixing toFront() for alwaysOnTop windows


#1

Hi Jules,

Adding this code in LinuxPeerComponent::toFront

[code]XWindowAttributes attr;
XGetWindowAttributes(display, windowH, &attr);

if (attr.override_redirect) {
XRaiseWindow(display, windowH);
}[/code]

fixes that function for windows which have the override_redirect flag.

(maybe a better fix would be to set a _NET_WM_WINDOW_TYPE_DOCK property or something similar on alwayOnTop windows, but I did not check, it could also break some other juce stuff…)


#2

ah, right, thanks!