We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3059

Summary: SDL don't update screen in fullscreen mode
Product: SDL Reporter: Tomas Ukkonen <nop>
Component: renderAssignee: Sam Lantinga <slouken>
Status: RESOLVED INVALID QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: amaranth72
Version: 2.0.3   
Hardware: x86_64   
OS: Linux   
Attachments: Example code showing only blank screen on Debian Sid

Description Tomas Ukkonen 2015-07-12 05:41:30 UTC
Created attachment 2218 [details]
Example code showing only blank screen on Debian Sid

SDL fullscreen mode (SDL_WINDOW_FULLSCREEN_DESKTOP) shows only blank black empty screen on Debian Sid. Same code works correctly in windowed mode.

This is either SDL2 bug or Debian Sid X libraries are buggy. Fullscreen mode works correctly in Debian stable (virtualbox machine without latest nvidia drivers).

uname -a 

Linux moria 4.0.0-2-amd64 #1 SMP Debian 4.0.7-1 (2015-07-06) x86_64 GNU/Linux

dpkg -l xserver* | grep nvidia

ii  xserver-xorg-video-nvidia        340.76-2      amd64        NVIDIA binary Xorg driver
Comment 1 Alex Szpakowski 2016-03-19 14:47:44 UTC
You need to call SDL_PollEvent or SDL_PumpEvents regularly (typically in a while-loop every frame, in SDL_PollEvent's case) for the window to respond and display as expected.