Scale's drag circle is offset from the actual mouse position if the scale's value is displayed on its left
In gtk version 3.92.1, if a GtkScale
has its value positioned to its left, and a custom format is used via the "format-value" signal which makes the value's entry longer, then when the user drags the scale's circle it is actually offset to the left of the actual mouse position. I attached a screenshot of this (since mice pointers don't show up on screen shots I doodled in the position of the pointer myself).
This doesn't happen in gtk+ 3.22.26.
To reproduce compile gtk_scale_offset_circle.c using
gcc ./gtk_scale_offset_circle.c $(pkg-config --cflags --libs gtk+-3.0
to see the expected behaviour, and then using
gcc ./gtk_scale_offset_circle.c $(pkg-config --cflags --libs gtk+-4.0
to see the bug.