Browse Source

Add a fallback in Displays::findDisplays() on Linux to make sure that there is always a main display

tags/2021-05-28
ed 6 years ago
parent
commit
eedca6109c
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      modules/juce_gui_basics/native/juce_linux_X11_Windowing.cpp

+ 3
- 0
modules/juce_gui_basics/native/juce_linux_X11_Windowing.cpp View File

@@ -3494,6 +3494,9 @@ void Displays::findDisplays (float masterScale)
xrandr.freeScreenResources (screens);
}
}
if (! displays.isEmpty() && ! displays.getReference (0).isMain)
displays.getReference (0).isMain = true;
}
}


Loading…
Cancel
Save