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 - SDL don't update screen in fullscreen mode
Summary: SDL don't update screen in fullscreen mode
Status: RESOLVED INVALID
Alias: None
Product: SDL
Classification: Unclassified
Component: render (show other bugs)
Version: 2.0.3
Hardware: x86_64 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-12 05:41 UTC by Tomas Ukkonen
Modified: 2016-03-19 14:47 UTC (History)
1 user (show)

See Also:


Attachments
Example code showing only blank screen on Debian Sid (1.12 KB, text/x-c++src)
2015-07-12 05:41 UTC, Tomas Ukkonen
Details

Note You need to log in before you can comment on or make changes to this bug.
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.