Open par456 opened 1 year ago
This is a continuation of issue #6447
Doing some more investigating, as Drew noted in the last issue this is a gtk bug, and while there are 3 pull requests to address it over on the gtk repo, none of them have been merged in to fix this. It was fixed in GTK4, but that doesn't help us much.
Interesting, the report context menu uses a completely different system to the script editor for it's menu, which is why it works fine but this one doesn't. One potential solution be to try and port over to that context menu system, but that's a pretty big overhaul and I don't even know if it would work.
I did have a look at if I could move the menu after it had been created, which is done sending a "show-completion" signal that gets processed somewhere else.
And although I can access the object that holds the menu with textEditor.Completion, it does not have any position or movement methods.
I'll leave this issue open for now, in case I think of another alternative, but if nothing comes up I'll close it later.
This may be another potential solution to this problem, if replacing how the manager script works: #7146
When I am writing a manager script, the auto-complete suggestions box that comes up when you press the period key will appear on my 2nd screen instead of where I'm typing.
It seems to work fine in the report script, so I'm going to investigate why they act differently.