winit icon indicating copy to clipboard operation
winit copied to clipboard

Window does not receive keyboard events until it has been moved or alt+tabbed at least once

Open kaphula opened this issue 2 years ago • 3 comments

On Manjaro Linux / Xorg / XFCE4, the winit window does not receive any keyboard events until the window will be moved with a mouse from the top bar or the window is "alt+tabbed" to another window and back.

I noticed this behavior when I upgraded my application from winit 0.28.7 to 0.29.4. The same behavior occurs on winit's latest master branch examples as well like here. It does not seem to be a focus thing as the WindowEvent::Focused(x) gives true.

kaphula avatar Feb 08 '24 15:02 kaphula

@kaphula ~~Can you see if this issue affects the control_flow example provided by this repo?~~

Can you run the control_flow example with xtrace and upload the results?

notgull avatar Feb 22 '24 04:02 notgull

Do you know how to copy the output from xtrace window? It gets filled with messages but I have not idea how to copy them. Many pages of messages. This is what I get in the console window:

xtrace ./control_flow
Function              File                                                  Line
--------------------------------------------------------------------------------
Press return here to close xterm(./control_flow).

kaphula avatar Feb 22 '24 15:02 kaphula

I'd seen something like this, too, but I thought it was a focus or an Egui problem. When I open a window, the first mouse click is ignored, but after that the window gets clicks.

John-Nagle avatar Mar 05 '24 05:03 John-Nagle