Silk.NET icon indicating copy to clipboard operation
Silk.NET copied to clipboard

Window.FocusChanged inconsistent behaviour on different OS

Open Beyley opened this issue 3 years ago • 4 comments

Summary

Window.FocusChanged is raised to true on window startup on linux, but not on windows, on windows the event is not called to true until you deselect then select the window

Steps to reproduce

  • Platform: Desktop
  • Framework Version: net7 (RID being specifically net7.0-windows)
  • API: DX11
  1. First I launched the app
  2. Then I printed the output of the event

Comments

Not sure whether this is a problem upstream or not (probably is?), or whether its correct to always send a focus event on app start

Beyley avatar Nov 22 '22 03:11 Beyley

Yeah this is defo an upstreamer.

Perksey avatar Nov 22 '22 20:11 Perksey

Yeah this is defo an upstreamer.

in that case ill try to repro in C with GLFW and SDL later, then open relavent issue in their repos

Beyley avatar Nov 22 '22 20:11 Beyley

confirmed to happen with raw GLFW using this gist, reporting upstream https://gist.github.com/Beyley/ff40ea7c245e4ff1541cce660802ef56

Beyley avatar Nov 24 '22 07:11 Beyley

Keeping this issue open incase something blocks upstream and we have to fix it ourselves upstream tracking: https://github.com/glfw/glfw/issues/2223

Beyley avatar Nov 24 '22 08:11 Beyley