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

Summary: Calls to SDL_PollEvent cause SDL2 window to "raise" itself in xfce
Product: SDL Reporter: vehday
Component: eventsAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.1   
Hardware: x86_64   
OS: Linux   

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);*/