VisualC-WinRT/SDL2main-WinRT-NonXAML.nuspec
author Sam Lantinga <slouken@libsdl.org>
Mon, 05 Aug 2019 23:38:48 -0700
changeset 13000 e6407f3ddba3
parent 9942 e82bfd942409
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.

Results:

- 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.
dludwig@9940
     1
<?xml version="1.0"?>
dludwig@9940
     2
<package >
dludwig@9940
     3
  <metadata>
dludwig@9942
     4
    <id>SDL2main-WinRT-NonXAML</id>
dludwig@9940
     5
    <version>2.0.4-Unofficial</version>
dludwig@9940
     6
    <authors>Sam Lantinga</authors>
dludwig@9940
     7
    <owners>David Ludwig</owners>
dludwig@9940
     8
    <licenseUrl>http://libsdl.org/license.php</licenseUrl>
dludwig@9940
     9
    <projectUrl>http://libsdl.org</projectUrl>
dludwig@9940
    10
    <requireLicenseAcceptance>false</requireLicenseAcceptance>
dludwig@9940
    11
    <description>WinMain() function for SDL2 + WinRT + CoreWindow (non-XAML) apps</description>
dludwig@9940
    12
    <copyright>Copyright 2015</copyright>
dludwig@9940
    13
    <tags>SDL2 SDL LibSDL OpenGL C C++ nativepackage</tags>
dludwig@9940
    14
    <dependencies>
dludwig@9940
    15
      <dependency id="SDL2-WinRT" version="2.0.4"/>
dludwig@9940
    16
    </dependencies>
dludwig@9940
    17
  </metadata>
dludwig@9940
    18
  <files>
dludwig@9940
    19
    <file src="..\src\main\winrt\SDL_winrt_main_NonXAML.cpp" target="src\main\winrt"/>
dludwig@9942
    20
    <file src="SDL2main-WinRT-NonXAML.targets" target="build\native"/>
dludwig@9940
    21
  </files>
dludwig@9940
    22
</package>