PatrickGMM commented on this pull request.
wy += allocation.y;
+ if (priv->in_overflow_menu) { + /* The button was added to the toolbar overflow menu (since the toolbar + * isn't wide enough to contain the button), so use the toolbar window + * instead + */ + + /* Get the root coordinates of the toolbar's window */ + int wx_root, wy_root, width; + window = gtk_widget_get_window (gtk_widget_get_ancestor(widget, GTK_TYPE_TOOLBAR)); +#if GTK_CHECK_VERSION(3, 0, 0) + gdk_window_get_geometry(window, &wx, &wy, &width, NULL); +#else + gdk_window_get_geometry(window, &wx, &wy, &width, NULL, NULL); +#endif + gdk_window_get_root_coords(window, wx, wy, &wx_root, &wy_root);
Yes, I will change this.