Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: 2.5.1 issue with taskbar / titlebar clipping through to desktop w/ multi-monitor  (Read 1497 times)

0 Members and 1 Guest are viewing this topic.

Sub

  • Full Member
  • ***
  • Posts: 147
    • View Profile
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?
« Last Edit: November 02, 2018, 08:33:18 pm by Sub »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 9355
    • View Profile
    • development blog
    • Email
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
Official FAQ: https://www.sfml-dev.org/faq.php
Nightly Builds: https://www.nightlybuilds.ch/
——————————————————————
Dev Blog: https://dev.my-gate.net/
Thor: http://www.bromeon.ch/libraries/thor/

Sub

  • Full Member
  • ***
  • Posts: 147
    • View Profile
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.