Fullscreen does not go over task bars on top and left on Ubuntu 16.04, SFML 2.4.1.
YouTube's and other games' fullscreen modes work normally.
Here is a screenshot of it.
Here is the minimal code:
#include <SFML/Graphics.hpp>
int main (int argc, char* argv[]) {
sf::RenderWindow window(sf::VideoMode(1920, 1080), "Window", sf::Style::Fullscreen);
while (window.isOpen()) {
sf::Event event;
while (window.pollEvent(event)) {
switch(event.type) {
case sf::Event::Closed:
window.close();
break;
}
}
window.clear();
window.display();
}
return 0;
}
Always thought this is the expected behavior on Unity, although I might be wrong. Only using Linux for occasional test builds, no full time user here.
YouTube's and other games' fullscreen modes work normally like in Windows though.
Okay, then this should probably be changed. By someone actually knowing X11 * shudder *. Any volunteers?
This is very critical for my game. Performance is very poor at windowed mode so fullscreen is a must. Can anyone help with this?
Tried and clearly too much X11/XRandR shenanigans going on for my likings. It seems like we'd have to use XRandR 1.2 and newer the way described here.
I just tested @bloodsword 's commit, it fixes the issue. Please add this.
Can anyone test master which includes the fix by @bloodsword?
This fixes the issue for me. Tested on Ubuntu 16.04.5 (Unity) in Virtualbox.
Same tested on Ubuntu 18. Greenlit.
Thanks, forgot to close it this after the merge. 馃檪
Most helpful comment
This fixes the issue for me. Tested on Ubuntu 16.04.5 (Unity) in Virtualbox.