author Sam Lantinga <>
Mon, 05 Aug 2019 23:38:48 -0700
changeset 13000 e6407f3ddba3
parent 9940 f2d5ed0d9686
permissions -rw-r--r--
Fixed bug 4689 - SDL fails to detect compositor shutdown on Wayland -- program keeps running

M Stoeckl

To reproduce:

1. Run any SDL-based program with a Wayland compositor, orphaning it so that it doesn't have an immediate parent process. (For example, from a terminal, running `supertux2 & disown`.) The program should use the wayland backend, i.e. by setting environment variable SDL_VIDEODRIVER=wayland.
2. Kill the compositor process.


- The SDL program will keep running.

Expected results:

- The SDL program should close. (What close should mean here, I'm not sure - is injecting an SDL_Quit the appropriate action when a video driver disconnects?)

Build data:

2019-06-22, hg tip (12901:5cbf6472a916), Linux, can reproduce with sway, weston, and other Wayland oompositors.
     1 <?xml version="1.0"?>
     2 <package >
     3   <metadata>
     4     <id>SDL2-WinRT</id>
     5     <version>2.0.4-Unofficial</version>
     6     <authors>Sam Lantinga</authors>
     7     <owners>David Ludwig</owners>
     8     <licenseUrl></licenseUrl>
     9     <projectUrl></projectUrl>
    10     <requireLicenseAcceptance>false</requireLicenseAcceptance>
    11     <description>Unofficial pre-release of LibSDL2, built for WinRT platforms</description>
    12     <copyright>Copyright 2015</copyright>
    13     <tags>SDL2 SDL LibSDL OpenGL C C++ nativepackage</tags>
    14   </metadata>
    15   <files>
    16     <file src="lib\**\*.dll" target="bin"/>
    17     <file src="lib\**\*.lib" target="bin"/>
    18     <file src="lib\**\*.pdb" target="bin"/>
    19     <file src="..\include\**\*.*" target="include"/>
    20     <file src="..\src\**\*.*" target="src"/>
    21     <file src="SDL2-WinRT.targets" target="build\native"/>
    22   </files>
    23 </package>