mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-09 23:34:20 +00:00
fixes for always-on-top making windows disappear
This commit is contained in:
parent
739ed96ba3
commit
1a0387125c
1 changed files with 9 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue