apprt/macos,gtk: unfocused splits now highlight hovered links

Fixes #1547

The core change to make this work is to make the cursor position
callback support taking updated modifiers. On both macOS and GTK, cursor
position events also provide the pressed modifiers so we can pass those
in.
This commit is contained in:
Mitchell Hashimoto
2024-09-21 15:11:28 -07:00
parent fb6cd7a8fa
commit 261ce00552
6 changed files with 49 additions and 11 deletions

View File

@@ -556,7 +556,10 @@ bool ghostty_surface_mouse_button(ghostty_surface_t,
ghostty_input_mouse_state_e,
ghostty_input_mouse_button_e,
ghostty_input_mods_e);
void ghostty_surface_mouse_pos(ghostty_surface_t, double, double);
void ghostty_surface_mouse_pos(ghostty_surface_t,
double,
double,
ghostty_input_mods_e);
void ghostty_surface_mouse_scroll(ghostty_surface_t,
double,
double,