Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyschoen committed Oct 19, 2023
1 parent 8ff0ef2 commit 6ef5227
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ file(GLOB plugdata_resources
${CMAKE_CURRENT_SOURCE_DIR}/Resources/Fonts/RobotoMono-Regular.ttf
${CMAKE_CURRENT_SOURCE_DIR}/Resources/Fonts/GoNotoCurrent.ttf
${CMAKE_CURRENT_SOURCE_DIR}/Resources/Icons/plugdata_large_logo.png
${CMAKE_CURRENT_SOURCE_DIR}/Resources/Icons/plugdata_logo.png
${CMAKE_CURRENT_SOURCE_DIR}/Resources/Filesystem_*.zip
${CMAKE_CURRENT_SOURCE_DIR}/Resources/Documentation.bin
)
Expand Down
6 changes: 6 additions & 0 deletions Source/Standalone/PlugDataApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ static char const* strtokcpy(char* to, size_t to_len, char const* from, char del

class PlugDataApp : public JUCEApplication {

Image logo = ImageFileFormat::loadFrom(BinaryData::plugdata_logo_png, BinaryData::plugdata_logo_pngSize);

public:
PlugDataApp()
{
Expand Down Expand Up @@ -120,6 +122,10 @@ class PlugDataApp : public JUCEApplication {
mainWindow->setVisible(true);
parseSystemArguments(arguments);

#if JUCE_LINUX || JUCE_BSD
mainWindow->getPeer()->setIcon(logo);
#endif

auto getWindowScreenBounds = [this]() -> juce::Rectangle<int> {
const auto width = mainWindow->getWidth();
const auto height = mainWindow->getHeight();
Expand Down
3 changes: 1 addition & 2 deletions Source/Utility/WindowDragger.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ class WindowDragger
if (componentToDrag != nullptr)
mouseDownWithinTarget = e.getEventRelativeTo (componentToDrag).getMouseDownPosition();

ResizableBorderComponent::Zone(0);
#if JUCE_LINUX
auto* peer = componentToDraw->getPeer();
auto* peer = componentToDrag->getPeer();

peer->startHostManagedResize(peer->localToGlobal(mouseDownWithinTarget), ResizableBorderComponent::Zone(0));
// This will tell X11 to act as if the titlebar is being dragged, and can make window dragging behave better.
Expand Down

0 comments on commit 6ef5227

Please sign in to comment.