Menu

#2261 [SciTE] calltip and completion dropdown list invisible on secondary monitor

Bug
closed-fixed
nobody
5
2021-12-06
2021-06-05
Ascalon
No

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.

Related

Bugs: #2296

Discussion

  • Neil Hodgson

    Neil Hodgson - 2021-06-05
    • labels: --> scintilla, gtk
     
  • Neil Hodgson

    Neil Hodgson - 2021-06-05

    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.

     
  • Ascalon

    Ascalon - 2021-06-07

    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.

     
    • Neil Hodgson

      Neil Hodgson - 2021-06-07

      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

      OK. It really needs someone prepared to debug the situation on an affected setup - I don't really understand Wayland either.

       
  • Neil Hodgson

    Neil Hodgson - 2021-11-23
    • status: open --> open-fixed
     
  • Neil Hodgson

    Neil Hodgson - 2021-11-23

    See [#2296] for fix.

     

    Related

    Bugs: #2296

  • Neil Hodgson

    Neil Hodgson - 2021-12-06
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.