Commit 968f943
wayland: fix mouse coordinate scaling for scaled windows
Fix get_mouse_pos to properly convert window coordinates to buffer
coordinates using the scale factor. This resolves buffer bounds errors
in examples like mouse.rs when using Scale::X2, where mouse coordinates
were being reported as window coordinates instead of buffer coordinates.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent f3fa21a commit 968f943
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
852 | 852 | | |
853 | 853 | | |
854 | 854 | | |
855 | | - | |
856 | | - | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
857 | 861 | | |
858 | 862 | | |
859 | 863 | | |
| |||
0 commit comments