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

Author Topic: Alt tab not working in fullscreen  (Read 4428 times)

0 Members and 1 Guest are viewing this topic.

flashrocket

  • Newbie
  • *
  • Posts: 21
    • View Profile
Alt tab not working in fullscreen
« 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?? :-\

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: Alt tab not working in fullscreen
« Reply #1 on: April 03, 2015, 03:20:45 pm »
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor

flashrocket

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: Alt tab not working in fullscreen
« Reply #2 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;
}

 

binary1248

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1405
  • I am awesome.
    • View Profile
    • The server that really shouldn't be running
Re: Alt tab not working in fullscreen
« Reply #3 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.
SFGUI # SFNUL # GLS # Wyrm <- Why do I waste my time on such a useless project? Because I am awesome (first meaning).

flashrocket

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: Alt tab not working in fullscreen
« Reply #4 on: April 04, 2015, 08:43:34 am »
Thank You :) :). Now its working. ;D