surface: Stop using surface types

This commit is contained in:
Matthias Clasen 2020-03-09 13:00:08 -07:00
parent c00ec402c1
commit 70e45aa229

View File

@ -267,7 +267,7 @@ gdk_surface_layout_popup_helper (GdkSurface *surface,
gboolean flipped_y;
int x, y;
g_return_if_fail (surface->surface_type == GDK_SURFACE_POPUP);
g_return_if_fail (GDK_IS_POPUP (surface));
root_rect = *gdk_popup_layout_get_anchor_rect (layout);
gdk_surface_get_root_coords (surface->parent,