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 2201 - Calls to SDL_PollEvent cause SDL2 window to "raise" itself in xfce
Summary: Calls to SDL_PollEvent cause SDL2 window to "raise" itself in xfce
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: HG 2.1
Hardware: x86_64 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-31 19:18 UTC by vehday
Modified: 2017-08-15 05:04 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 vehday 2013-10-31 19:18:33 UTC
This causes any SDL2 app which uses SDL_PollEvent to prevent users from switching workspaces.

Observed on Linux Mint 15 xfce edition, using xfce version 4.10 and SDL version 2.0.1. All WM/Xorg configuration is default Linux Mint 15.

A video demonstrating the behavior: http://www.youtube.com/watch?v=UWSnx3Pk1K0

To reproduce simply run any SDL2 program which calls SDL_PollEvent.
Comment 1 Sam Lantinga 2017-08-15 05:04:41 UTC
void
SDL_OnWindowRestored(SDL_Window * window)
{
    /*
     * FIXME: Is this fine to just remove this, or should it be preserved just
     * for the fullscreen case? In principle it seems like just hiding/showing
     * windows shouldn't affect the stacking order; maybe the right fix is to
     * re-decouple OnWindowShown and OnWindowRestored.
     */
    /*SDL_RaiseWindow(window);*/