Using Geany version 1.35 compiled under linux mint 19.1 cinnamon for GTK version 2.24.32. Using version 1.35 of the plugins pack compiled under the same config.
The problem occurs when the button for the Open Documents feature is rolled-up into the drop-down button (when the toolbar isn't wide enough to display the button). The button in this case has no parent window, so you need to get the window of the parent of the button for calculating the position of the Open Documents window in ao_popup_position_menu() in ao_doclist.c.
How I fixed it on my machine (ao_doclist.c): GdkWindow *window = gtk_widget_get_window(widget); gint widget_height;
+ if (window == NULL && GTK_IS_TOOL_BUTTON(widget)) { + /* The button was rolled-up into a drop-down list (since the main + * window isn't wide enough to contain the button), so get the parent's + * window instead + */ + window = gtk_widget_get_window (gtk_widget_get_parent(widget)); + } + /* Retrieve size and position of both widget and menu */ if (! gtk_widget_get_has_window(widget)) {
I added a pull request (#895) with a more robust solution to the issue.
Fixed via #895.
Closed #892.
github-comments@lists.geany.org