Hey,
when I create a window with
sf::VideoMode::getFullscreenModes()[0]
everything is fine. But when I choose another index than 0, the following happens:
My screen turns black for a second and on the upper left corner the console is displayed for a fraction of a second. After that the window works fine with the wanted resolution. After I close the window though my whole desktop is getting displayed in the resolution that I've chosen for my window. I can reverse this by running the program again with the first fullscreen mode or by restarting. The index is valid; there are about 44 valid fullscreen modes available.
What am I doing wrong?
The program is running on a quite old hp with Ubuntu 18.04 installed.
Thanks for all answers!
Daniel