This is probably user error, as I’m pretty new to JUCE. I can’t seem to make setFullScreen(true) to have the desired behavior (on Ubuntu 18.04).
I would like to set the MainWindow to fullscreen, and then set the size of the MainComponent to take up the full size of the MainWindow.
I have called setFullScreen(true) on MainWindow, and I’ve tried a few different things to set the size of the MainComponent, one of them being the following:
auto userArea{juce::Desktop::getInstance().getDisplays().getPrimaryDisplay()->userArea};
setSize(userArea.getWidth(), userArea.getHeight());
It seems that when the app is first opened it has the full height of the screen, and only after an initial interaction (like a mouse movement) does it actually get resized to the true userArea size.
I’ve set a DBG statement inside my MainComponent::resized function and see the following (the first message is on the initial call to resized called after the constructor, the second is after slightly moving the mouse):

I’ve scoured the forums and docs and haven’t found anything yet. Any insights would be appreciated.






