1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

fixes for always-on-top making windows disappear

This commit is contained in:
jules 2007-06-29 14:50:26 +00:00
parent 739ed96ba3
commit 1a0387125c

View file

@ -982,10 +982,18 @@ public:
{
if (windowH != 0)
{
const bool wasVisible = component->isVisible();
if (wasVisible)
setVisible (false); // doesn't always seem to work if the window is visible when this is done..
XSetWindowAttributes swa;
swa.override_redirect = getComponent()->isAlwaysOnTop() ? True : False;
swa.override_redirect = alwaysOnTop ? True : False;
XChangeWindowAttributes (display, windowH, CWOverrideRedirect, &swa);
if (wasVisible)
setVisible (true);
}
return true;