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 2817

Summary: SDL_RenderPresent() demands attention?
Product: SDL Reporter: Thomas Vesper <thomas.vesper>
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: ASSIGNED --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.3   
Hardware: x86_64   
OS: Linux   

Description Thomas Vesper 2014-12-12 09:30:40 UTC
Under certain conditions _NET_WM_STATE_DEMANDS_ATTENTION gets set.
Depending on WM preferences this causes different kinds of annoyance.

When I first noticed this behavior the SDL-window followed me over all desktops.

A simple loop using a renderer is enough.
(e.g. http://lazyfoo.net/tutorials/SDL/07_texture_loading_and_rendering/index.php)

When I switch workspaces or move the window between workspaces the attention flag gets
set most of the time.
(xwininfo -wm => Window state: Demands Attention)

It doesn't happen without renderer (like http://lazyfoo.net/tutorials/SDL/01_hello_SDL/index2.php)
It doesn't happen with any other program I know of.

I watched this under XFCE 4.8 (debian/wheezy) and XFCE 4.10 (debian/jessie).
KDE 4.4.5 on debian/squeeze seems unaffected.

It seems to make difference if I switch workspaces via keyboard shortcut or by clicking on the pager widget.