menu: Stop using gdk_surface_new_temp

We can just as well use gdk_surface_new_popup.
This commit is contained in:
Matthias Clasen 2019-04-20 04:32:00 +00:00
parent 7c1509feaa
commit 346bd3f6b5

View File

@ -2199,7 +2199,8 @@ menu_grab_transfer_surface_get (GtkMenu *menu)
GdkSurface *surface = g_object_get_data (G_OBJECT (menu), "gtk-menu-transfer-surface");
if (!surface)
{
surface = gdk_surface_new_temp (gtk_widget_get_display (GTK_WIDGET (menu)));
GdkRectangle rect = { -100, -100, 1, 1 };
surface = gdk_surface_new_popup (gtk_widget_get_display (GTK_WIDGET (menu)), &rect);
gdk_surface_show (surface);