Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Linux] Fullscreen window not going fullscreen #380

Closed
SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Closed

[Linux] Fullscreen window not going fullscreen #380

SDLBugzilla opened this issue Feb 10, 2021 · 0 comments

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

These attachments are available in the static archive:

Reported in version: HG 2.0
Reported for operating system, platform: Linux, x86

Comments on the original bug report:

On 2011-02-26 10:14:23 +0000, Jesse Anders wrote:

Creating a fullscreen window doesn't appear to be working correctly. Here's the test program I'm using (error-checking has been removed for brevity):


#include "SDL.h"

int main(int, char*[])
{
SDL_Init(SDL_INIT_EVERYTHING);
SDL_Window* window = SDL_CreateWindow(
"", 0, 0, 1280, 1024, SDL_WINDOW_FULLSCREEN | SDL_WINDOW_SHOWN);

bool quit = false;
while (!quit) {
    SDL_Event event;
    while (SDL_PollEvent(&event)) {
        if (event.type == SDL_KEYDOWN || event.type == SDL_QUIT) {
            quit = true;
        }
    }
}

SDL_DestroyWindow(window);
SDL_Quit();

return 0;

}


Everything succeeds and the window is created, but not at fullscreen; the taskbar and menu bar are still visible, and clicking on the window's title bar causes the window to minimize.

This is with Ubuntu 10.10. (It looks like there are some related bugs in the database, but I'm not sure if they're exactly the same.)

Let me know if you need any other info.

On 2012-09-25 19:14:07 +0000, Edward Rudd wrote:

Created attachment 958
Fix to allow fullscreen to work with compiz

This issue is entirely related to Compiz and it's "odd" way of handling fullscreen.. Basically it refuses to allow a window to go fullscreen unless the window is resizeable. This attached patch checks for that scenario and enables/disabled re-sizing when going into/out of fullscreen mode.

On 2012-09-27 11:12:56 +0000, Ryan C. Gordon wrote:

(In reply to comment # 1)

Created attachment 958 [details]
Fix to allow fullscreen to work with compiz

Something like this patch is now hg changeset ebe165c00fab, thanks!

--ryan.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant