Commit 6cadaca
committed
Fix file drop event cursor position reporting
Previously, file drop events always reported cursor position as (0,0)
because the position was hardcoded. GLFW's drop callback does not provide
cursor position directly, so we now query it using glfwGetCursorPos() at
the time of the drop.
This matches the approach used in GLFW's Windows backend, which updates
the cursor position immediately before calling the drop callback. On X11,
the cursor position is tracked during drag operations, so querying it at
drop time provides the accurate drop location.
Note: This is technically a separate bug fix but is included with the
GLFW 3.4 upgrade to ensure file drop events work correctly for testing
the upgraded GLFW integration.1 parent b18a398 commit 6cadaca
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
320 | | - | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
321 | 324 | | |
322 | 325 | | |
323 | 326 | | |
| |||
0 commit comments