SFML community forums

Help => Window => Topic started by: flashrocket on April 03, 2015, 01:37:49 pm

Title: Alt tab not working in fullscreen
Post by: flashrocket on April 03, 2015, 01:37:49 pm
In linux(Ubuntu 14.10) some keys dont work in full screen such as alt+tab, volume keys, brightness keys. How to enable them?? :-\
Title: Re: Alt tab not working in fullscreen
Post by: zsbzsb on April 03, 2015, 03:20:45 pm
https://github.com/SFML/SFML/pull/825
Title: Re: Alt tab not working in fullscreen
Post by: flashrocket on April 03, 2015, 04:41:27 pm
https://github.com/SFML/SFML/pull/825

I tried the git version but now it no longer goes to fullscreen.
The title and launcher are still visible during application.

My code.

#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>

int main()
{
    sf::RenderWindow window{sf::VideoMode::getDesktopMode(),"Hello",sf::Style::Fullscreen};
    while(window.isOpen()){
        sf::Event event;
        while(window.pollEvent(event))
            switch (event.type) {
            case sf::Event::Closed:
                window.close();
                break;
            case sf::Event::KeyPressed:
                switch(event.key.code){
                case sf::Keyboard::Escape:
                    window.close();
                    break;
                default:
                    break;
                }

            default:
                break;
            }
        window.clear(sf::Color::Blue);
        window.display();
    }
    return 0;
}

 
Title: Re: Alt tab not working in fullscreen
Post by: binary1248 on April 03, 2015, 07:54:29 pm
Thanks for the bug report.

It seems that contrary to what I thought before, Openbox was the bugged window manager, and not the others. I just fixed the bug on that same branch: https://github.com/SFML/SFML/tree/bugfix/xcb_dependencies

Try it out again now, it should work properly in Unity as well.
Title: Re: Alt tab not working in fullscreen
Post by: flashrocket on April 04, 2015, 08:43:34 am
Thank You :) :). Now its working. ;D