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 - SDL_RenderPresent() demands attention?
Summary: SDL_RenderPresent() demands attention?
Status: ASSIGNED
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: 2.0.3
Hardware: x86_64 Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-12 09:30 UTC by Thomas Vesper
Modified: 2017-08-14 01:05 UTC (History)
0 users

See Also:


Attachments

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