mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-30 02:50:05 +00:00
Fix missing window decorations in KDE
This commit is contained in:
parent
79332132b5
commit
688969da20
1 changed files with 9 additions and 3 deletions
|
|
@ -2824,6 +2824,14 @@ private:
|
|||
ScopedXLock xlock;
|
||||
xchangeProperty (wndH, hints, hints, 32, &kwmHints, 1);
|
||||
}
|
||||
|
||||
hints = Atoms::getIfExists ("_KDE_NET_WM_WINDOW_TYPE_OVERRIDE");
|
||||
|
||||
if (hints != None)
|
||||
{
|
||||
ScopedXLock xlock;
|
||||
xchangeProperty (wndH, atoms.windowType, XA_ATOM, 32, &hints, 1);
|
||||
}
|
||||
}
|
||||
|
||||
void addWindowButtons (Window wndH)
|
||||
|
|
@ -2898,9 +2906,7 @@ private:
|
|||
else
|
||||
netHints [0] = Atoms::getIfExists ("_NET_WM_WINDOW_TYPE_NORMAL");
|
||||
|
||||
netHints[1] = Atoms::getIfExists ("_KDE_NET_WM_WINDOW_TYPE_OVERRIDE");
|
||||
|
||||
xchangeProperty (windowH, atoms.windowType, XA_ATOM, 32, &netHints, 2);
|
||||
xchangeProperty (windowH, atoms.windowType, XA_ATOM, 32, &netHints, 1);
|
||||
|
||||
int numHints = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue