dotnet / dotnet/Silk.NET

Window.FocusChanged inconsistent behaviour on different OS

Open
#1,156 4 comments 0 reactions 0 assignees View on GitHub
area-Windowing bug upstream verify-3.0
Dominant language
C#
Stars
5.2k
Forks
477
Avg merge
3d 16h
Merged PRs (30d)
2

Description

# 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.