Commit 56edade
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 56edade
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
52 | 57 | | |
53 | 58 | | |
54 | 59 | | |
| |||
0 commit comments