Browse Source

Disable juce code for xrandr and xinerama, not needed in plugins

tags/2018-04-16
falkTX 10 years ago
parent
commit
f881520bad
3 changed files with 10 additions and 7 deletions
  1. +8
    -5
      libs/juce/build-juce/AppConfig.h
  2. +1
    -1
      ports/juce-plugin-host/source/GraphEditorPanel.cpp
  3. +1
    -1
      ports/juce-plugin-host/source/MainHostWindow.cpp

+ 8
- 5
libs/juce/build-juce/AppConfig.h View File

@@ -280,14 +280,17 @@
*/
#define JUCE_ENABLE_REPAINT_DEBUGGING 0
/** JUCE_USE_XRANDR: Enables Xrandr multi-monitor support (Linux only).
Unless you specifically want to disable this, it's best to leave this option turned on.
Note that your users do not need to have Xrandr installed for your JUCE app to run, as
the availability of Xrandr is queried during runtime.
*/
#define JUCE_USE_XRANDR 0
/** JUCE_USE_XINERAMA: Enables Xinerama multi-monitor support (Linux only).
Unless you specifically want to disable this, it's best to leave this option turned on.
*/
#if LINUX
#define JUCE_USE_XINERAMA 1
#else
#define JUCE_USE_XINERAMA 0
#endif
#define JUCE_USE_XINERAMA 0
/** Config: JUCE_USE_XSHM
Enables X shared memory for faster rendering on Linux. This is best left turned on


+ 1
- 1
ports/juce-plugin-host/source/GraphEditorPanel.cpp View File

@@ -42,7 +42,7 @@ PluginWindow::PluginWindow (GraphEditorPanel* const p,
setSize (400, 300);
setContentOwned (pluginEditor, true);
setUsingNativeTitleBar (true);
//setUsingNativeTitleBar (true);
setTopLeftPosition (owner->properties.getWithDefault ("uiLastX", Random::getSystemRandom().nextInt (500)),
owner->properties.getWithDefault ("uiLastY", Random::getSystemRandom().nextInt (500)));


+ 1
- 1
ports/juce-plugin-host/source/MainHostWindow.cpp View File

@@ -50,7 +50,7 @@ public:
setTopLeftPosition (60, 60);
restoreWindowStateFromString (owner.appProperties.getUserSettings()->getValue ("listWindowPos"));
setUsingNativeTitleBar (true);
//setUsingNativeTitleBar (true);
setVisible (true);
}


Loading…
Cancel
Save