SFML community forums

Help => Window => Topic started by: Sub on November 02, 2018, 08:29:29 pm

Title: 2.5.1 issue with taskbar / titlebar clipping through to desktop w/ multi-monitor
Post by: Sub on November 02, 2018, 08:29:29 pm
It seems like it never ends with the fullscreen multi-monitor issues on Linux.  2.5.1 is infinitely better than the old behavior, but there's still one weird thing going on for me.  What's frustrating is that I tested the multi-monitor patches prior to 2.5.1 being released, and I don't remember running into this.  Note that this is with Linux Mint Cinnamon 19.1, I haven't tried any other desktop environment.

When I go into fullscreen, the titlebar area clips through to show the desktop background.  If I alt tab and then reenter the program, the fullscreen covers the entire screen.  In other words, if I alt tab and then reenter the program, it then fixes the issue / behaves as it should.

https://i.imgur.com/7JHaVA7.jpg

I've also gotten the taskbar area to show through instead of the titlebar area, but I don't have a screenshot of this as I can't seem to reproduce this one reliably.  I'm not sure what the trigger is there. 

Here's my monitor setup.  It's just two 1920x1080 monitors side by side.  Note that this does not happen when the displays are mirrored.

https://i.imgur.com/PBzvAI5.png

I can reproduce the issue with the following code
Code: [Select]

#include <SFML/Graphics.hpp>

int main()
{
    sf::RenderWindow window(sf::VideoMode::getDesktopMode(), "SFML", sf::Style::Fullscreen);

    sf::CircleShape shape(100.f);
    shape.setFillColor(sf::Color::Green);

    while (window.isOpen())
    {
        sf::Event event;
        while (window.pollEvent(event))
        {
            if (event.type == sf::Event::Closed)
                window.close();
        }

        window.clear();
        window.draw(shape);
        window.display();
    }

    return 0;
}

Anyone else running into this?
Title: Re: 2.5.1 issue with taskbar / titlebar clipping through to desktop w/ multi-monitor
Post by: eXpl0it3r on November 06, 2018, 09:57:00 pm
Sounds unfortunately like yet another very window manager specific issue.

If you have the time, it would be awesome if you "somehow" could find out what's going on and/or check if other applications act the same way and if not, what they do differently. :D
Title: Re: 2.5.1 issue with taskbar / titlebar clipping through to desktop w/ multi-monitor
Post by: Sub on November 07, 2018, 08:03:45 pm
I'll add it to my list of things to do, but considering the fix is to alt tab and then reenter the program, it's pretty low priority for me at the moment.  I'll post back here if I find anything.