Commit fd7445e
fix(wayland): restore focus during window resize
On Wayland, when the user resizes a window, the compositor takes
over input handling. This causes GLFW to receive a keyboardHandleLeave
event, which it incorrectly interprets as the window losing focus.
This will result in Platform::update() no longer executed, then the
render result is incorrect.
This patch forces focus to be restored in the window size callback
on Wayland, ensuring that rendering continues during resize operations.
Signed-off-by: Ryan Zhang <ryan.zhang@nxp.com>1 parent fa2cf45 commit fd7445e
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
52 | 57 | | |
53 | 58 | | |
54 | 59 | | |
| |||
0 commit comments