Browse Source

VST2 Client: Fix popupmenu window location in VST2 plugins under the AudioPluginHost

pull/22/head
reuk 3 years ago
parent
commit
fcd6752d4f
No known key found for this signature in database GPG Key ID: 9ADCD339CFC98A11
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      modules/juce_gui_basics/native/x11/juce_linux_XWindowSystem.cpp

+ 3
- 1
modules/juce_gui_basics/native/x11/juce_linux_XWindowSystem.cpp View File

@@ -1864,7 +1864,9 @@ Rectangle<int> XWindowSystem::getWindowBounds (::Window windowH, ::Window parent
}
else
{
parentScreenPosition = Point<int> (rootX, rootY);
// XGetGeometry returns wx and wy relative to the parent window's origin.
// XTranslateCoordinates returns rootX and rootY relative to the root window.
parentScreenPosition = Point<int> (rootX - wx, rootY - wy);
}
}


Loading…
Cancel
Save