RustAudio / baseview

low-level window system interface for audio plugin UIs
Apache License 2.0
259 stars 54 forks source link

Keyboard Input broken in parented Window - Windows 10 #192

Closed nat3Github closed 4 weeks ago

nat3Github commented 1 month ago

I ran the test (https://github.com/RustAudio/baseview/blob/master/examples/open_parented.rs)

when hovering over normal window: in windows 10 WSL => logs Parent: KeyEvent in normal windows 10 => logs Parent: KeyEvent

when hovering over parented window: in windows 10 WSL => logs CHILD: KeyEvent in normal windows 10 => logs PARENT: KeyEvent

because of this key events are also broken in nih-plug on windows 10. https://github.com/robbert-vdh/nih-plug/issues/154

nat3Github commented 4 weeks ago

apparently this is expected behavior. if the window is focused the parented windows receives key events.

the difference comes from ubuntu-linux focusing the parented window when hovering over it and windows 10 does not do this.