mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Linux: Update displays when DPI settings change
This commit is contained in:
parent
70d36f06db
commit
8d72e7fccc
1 changed files with 5 additions and 1 deletions
|
|
@ -461,7 +461,11 @@ private:
|
|||
//==============================================================================
|
||||
void settingChanged (const XWindowSystemUtilities::XSetting& settingThatHasChanged) override
|
||||
{
|
||||
if (settingThatHasChanged.name == XWindowSystem::getWindowScalingFactorSettingName())
|
||||
static StringArray possibleSettings { XWindowSystem::getWindowScalingFactorSettingName(),
|
||||
"Gdk/UnscaledDPI",
|
||||
"Xft/DPI" };
|
||||
|
||||
if (possibleSettings.contains (settingThatHasChanged.name))
|
||||
forceDisplayUpdate();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue