Skip to content

SDL events not working for multiple windows #350

@azeno

Description

@azeno

Summary

Currently all SDL events get blindly dispatched to the window polling the message loop. Instead the events should be dispatched to the window as provided by the event's window id or (if not set) to the window having focus.

Steps to reproduce

  • Platform: Desktop
  • Framework Version: .NET Core 3
  1. Add a second window to the basic example in the 2.0 branch
  2. Prioritize SDL
  3. See all events getting routed to the window calling DoEvents

Comments

Maybe something like https://github.com/stride3d/stride/blob/master/sources/engine/Stride.Graphics/SDL/Application.cs should be introduced? What would be the proper approach?

Sadly I can't really build the solution. It's complaining about files not being found under C:\Silk.NET\... - once I move everything there, Visual Studio goes completely nuts, eating up all of my memory and in git I see >2000 or more *.gen.cs files. I guess that's not how it's supposed to be?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions