IDE SynCompletion: Incorrect tooltip positioning for auto-completion droplist via Gtk2
- Lazarus/FPC Version: Lazarus 3.99 (rev main_3_99-1093-gc4773c0a) FPC 3.3.1 x86_64-linux-gtk2
- Operating System: Linux version 6.1.57-un-def-alt1
- CPU / Bitness: 64
If you call the autocomplete list (Ctrl+Space) and the first line in the drop-down list is long, the IDE will try to display a tooltip for that line. In Gtk2, the list will be displayed through animation and with a 50/50 chance that when the ClientToScreen function is called to calculate the tooltip coordinates, it will return empty coordinates, by which the tooltip will be placed. Since syncompletion.pas contains too high-level code to determine whether the window is ready to call ClientToScreen, I suggest this patch that solves this problem.
Patch: syn_showitemhint.patch