OS: Arch Linux
GTK Version: 3.24.29
SciTE Version: 5.0.3
Graphical Environment: Sway (Wayland)
Autocomplete works as expected whenever SciTE is on my primary monitor, across various compositors that I've tested. Whenever the program is on my secondary monitor, the drop down is no longer visible; I can still select suggestions with the arrow keys and enter but I cannot see what I am picking.
I initially thought it was related to the usage of the deprecated function gtk_menu_popup (https://github.com/swaywm/sway/issues/3135#issuecomment-448794177) but I'm no longer certain that that's the case. Please let me know if there's any more information needed or if there's debugging I can try on my end.
Autocompletion doesn't use a menu so its not gtk_menu_popup. Its a window containing a list. The code tries to find the screen containing the caret then find that screen's rectangle and show the autocompletion within that rectangle.
I don't have a multi-monitor GTK setup where I can try doing this myself. The key method is Window::GetMonitorRect. You could try placing print statements inside Window::GetMonitorRect and its caller (ScintillaBase::AutoCompleteStart) to work out where Scintilla is trying to show the autocompletion.
Sorry but I haven't compiled from source and wouldn't know where to begin in editing as I'm not proficient with C or know much about GTK. I'm willing to try to do something if you describe it step by step, however. Or perhaps there's something else I can try like some tool that outputs debug information.
OK. It really needs someone prepared to debug the situation on an affected setup - I don't really understand Wayland either.
See [#2296] for fix.
Related
Bugs:
#2296