Skip to content

Support "Inspect under mouse" for Gtk 4 apps

Refactor code handling coordinates a bit and adjust the "Inspect object under mouse" implementation to use window coordinates instead of desktop coordinates for Gtk 4 apps, where desktop coords are not supported.

Together with !47 (merged) and upstream Gtk fixes gtk@1ff17f1a and gtk@ea7ddc03 and gtk@e6a4cc8b, this makes the feature work for Gtk 4 apps, at least in my tests on Plasma X11 on Debian testing.

Sample screencast using gtk4-demo:

2024-02-21_screencast_accerciser_gtk4_inspect_under_mouse.mkv

(More details in the individual commit messages.)

Related: #41

Edited by Michael Weghorn

Merge request reports