JUCE icon indicating copy to clipboard operation
JUCE copied to clipboard

[Bug]: Regressions on non-resizable Standalone app on Linux with tiling window manager

Open Barabas5532 opened this issue 1 year ago • 0 comments
trafficstars

Detailed steps on how to reproduce the bug

Install Linux with i3 window manager. Maybe it's reproducible using other window managers too.

Set up a plugin app and add

    setResizable(false, false);
    setSize (700, 200);

to the Editor's constructor.

First issue is introduced in https://github.com/juce-framework/JUCE/commit/05c2261efe34240fecee03b19cc7aeac1fc5a8b7. Before this commit, the window is always floating and can't be resized. After this commit, the window is tiled by default. If it is manually toggled to floating, then it can be resized.

Second issue is introduced in https://github.com/juce-framework/JUCE/commit/e12a1a75acb8925d6468cc7852e8c46ac604521a. Before this commit, the window become the correct size when it is toggled from tiled to floating. After this commit, it becomes very small:

image

What is the expected behaviour?

If I call setResizable(false, false), then the standalone window is not resizable. Maybe it made more sense for it be floating window in a tiling window manager environment, since tiling can lead to the UI getting cut off if the window is too small. REAPER also floats the plugin UI both in the FX dialog and for popped out plugin UIs.

Operating systems

Linux

What versions of the operating systems?

Arch Linux is rolling release. Package versions below.

Name : xorg-server Version : 21.1.13-1

Name : i3-wm Version : 4.23-4

Architectures

x86_64

Stacktrace

No response

Plug-in formats (if applicable)

Standalone

Plug-in host applications (DAWs) (if applicable)

No response

Testing on the develop branch

The bug is present on the develop branch

Code of Conduct

  • [X] I agree to follow the Code of Conduct

Barabas5532 avatar Nov 05 '24 16:11 Barabas5532