plugdata icon indicating copy to clipboard operation
plugdata copied to clipboard

Resizing the standalone window is erratic

Open zkf opened this issue 2 years ago • 4 comments

I guess the slowness could be caused by JUCE 6 and upgrading to 7 will fix that. But it seems like the size calculations may be skewed when resizing to the left or up?

https://user-images.githubusercontent.com/613216/169660214-9611f79b-da62-4dfc-ae98-27bff3af6116.mp4

zkf avatar May 21 '22 16:05 zkf

I think more people have complained about this with JUCE, especially when using a non-native titlebar. Resizing on Linux is a pain indeed! I'm running some tests with JUCE 7 now, I'll see if it's any better, but I'm afraid it won't be.

One improvement could be to use native window shadows instead of drawing them manually, but I've seen large inconsistencies between distros here (on my Arch build, there are no shadows at all!) which is why I enabled the custom shadows on Linux. It might have a negative impact on performance due to the transparency.

timothyschoen avatar May 21 '22 16:05 timothyschoen

Upgrading JUCE did not fix it :(

timothyschoen avatar May 30 '22 02:05 timothyschoen

It has been reported all over the JUCE forum in the past, but no fix yet.

https://forum.juce.com/t/juce-window-resizes-like-ass-on-ubuntu-x11/8759 https://forum.juce.com/t/resizing-problem/9922/5 https://forum.juce.com/t/non-native-window-resizing-painful-even-in-jucedemo/9168 https://forum.juce.com/t/graphical-problem-when-resizing-the-jucer-window-ubuntu/2358

timothyschoen avatar Jun 30 '22 15:06 timothyschoen

Update:

I think I know what causes this, so I've revived one of those threads to notify the JUCE devs. Unfortunately, they seem to be very busy since JUCE 7 was just released. I don't know enough about X11 to fix it myself, it would also require me to maintain my own JUCE fork, which I'm trying to avoid. I am a bit worried about our chances because this has been reported a bunch of times to no avail...

timothyschoen avatar Jul 04 '22 11:07 timothyschoen

I think this is better now on the develop branch. I'm reducing the rate of MouseEvent so that it doesn't trigger too many repaints, this makes it "smooth enough", it's not great but it's functional.

If this isn't fixed for you, let me know!

timothyschoen avatar Feb 06 '23 01:02 timothyschoen