SDL Fullscreen and Gnome-panel

Posted by Daniel on Ask Ubuntu See other posts from Ask Ubuntu or by Daniel
Published on 2011-02-05T08:38:53Z Indexed on 2011/02/05 15:33 UTC
Read the original article Hit count: 359

Filed under:
|
|

On Ubuntu 10.10, the following SDL code cause Gnome-panel to cease updating its drawing, however it does still function (ie windows on the panel open where they should be, but you just have to know where they 'would be' on instinct/memory).

Gnome-panel also leaves a "Untitled window" box in the panel.

#include <SDL.h>

int main() {
    SDL_Surface* Screen;
    if(SDL_Init(SDL_INIT_VIDEO) < 0) {
        return 1;
    }
    Screen = SDL_SetVideoMode(1280, 1024, 32, SDL_OPENGL | SDL_FULLSCREEN);
    SDL_FreeSurface(Screen);
    SDL_Quit();
    return 0;
}

Is this something wrong with SDL? Something wrong with the code? Something wrong with Gnome-panel?

Hopefully we can find out :)

Note: SDL tag request? Seeing as it is quite popular when searched: http://askubuntu.com/search?q=SDL

© Ask Ubuntu or respective owner

Related posts about gnome-panel

  • GNOME panel crash

    as seen on Ask Ubuntu - Search for 'Ask Ubuntu'
    when trying to log in using gnome-classic on ubuntu 11.10 gnome-panel crashes. I can still see the desktop and i can open applications via terminal but when i try to run gnome-panel using "gnome-panel" or "gnome-panel --replace" it crashes with this error: (gnome-panel:9694): Gtk-CRITICAL **: gtk_style_context_get:… >>> More

  • Gnome panel not found

    as seen on Ask Ubuntu - Search for 'Ask Ubuntu'
    Hi I installed the Ubuntu 10.10 on my laptop. 1st time Ubuntu user ever. After successful installation only panel on top with small ubuntu logo on left and system/connections, time, keyboard, volume icons/ on right. No menu and not able to create menu. Right click on the panel - no options. I… >>> More

  • How to put "gnome-panel" like icons in GNOME 3?

    as seen on Ask Ubuntu - Search for 'Ask Ubuntu'
    I can't put icons on my GNOME-panel (I mean the right click on the panel doesn't works, and I can drag&drop icons from my Desktop to my gnome-panel): $ dpkg -l | grep -i gnome-panel ii gnome-panel 1:3.2.0-0ubuntu1 launcher and docking facility for GNOME ii gnome-panel-data 1:3.2… >>> More

  • how to reset gnome panel?

    as seen on Ask Ubuntu - Search for 'Ask Ubuntu'
    I think my gnome-panel is messed up because I alt+right click it and nothing pops up. I'm on 12.04, classic gnome desktop. so I used locate and found gnome-panel in .gconf somewhere, how do I clear just gnome-panel's settings so that I can add things to my panel again? edit: matt: ~/.gconf $… >>> More

  • Change Gnome-Panel profile at startup according to number of displays

    as seen on Super User - Search for 'Super User'
    I'm running Ubuntu 10.04 on a Laptop. I have a startup script which enables external displays, if they are connected. It runs at GDM startup, configured in /etc/gdm/Init/Default. When i'm running without external displays, Gnome should use 2 Panels. When i'm using 2 external displays, Gnome should… >>> More

Related posts about graphics