Browse Source

Ignore handleCommandMessage/postCommandMessage not used in linux

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.3.2
falkTX 3 years ago
parent
commit
e019d7d4e9
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      source/utils/JucePluginWindow.hpp

+ 4
- 0
source/utils/JucePluginWindow.hpp View File

@@ -72,7 +72,9 @@ public:
setVisible(true); setVisible(true);
toFront(true); toFront(true);


#ifndef CARLA_OS_LINUX
postCommandMessage(0); postCommandMessage(0);
#endif
} }


void hide() void hide()
@@ -107,6 +109,7 @@ protected:
return ComponentPeer::windowHasDropShadow | ComponentPeer::windowHasTitleBar | ComponentPeer::windowHasCloseButton; return ComponentPeer::windowHasDropShadow | ComponentPeer::windowHasTitleBar | ComponentPeer::windowHasCloseButton;
} }


#ifndef CARLA_OS_LINUX
void handleCommandMessage(const int comamndId) override void handleCommandMessage(const int comamndId) override
{ {
CARLA_SAFE_ASSERT_RETURN(comamndId == 0,); CARLA_SAFE_ASSERT_RETURN(comamndId == 0,);
@@ -117,6 +120,7 @@ protected:
setAlwaysOnTop(false); setAlwaysOnTop(false);
} }
} }
#endif


private: private:
volatile bool fClosed; volatile bool fClosed;


Loading…
Cancel
Save