When showing the native file chooser, we need to ensure we clear the
sorted surfaces in the display so that we don't risk delivering events
correctly on the next frame.
#include "gtkfilefilterprivate.h"
#include "macos/gdkmacos.h"
+#include "macos/gdkmacosdisplay-private.h"
#include "macos/gdkmacossurface-private.h"
typedef struct {
[data->key_window makeKeyAndOrderFront:nil];
}
+ /* Need to clear our cached copy of ordered windows */
+ _gdk_macos_display_clear_sorting (GDK_MACOS_DISPLAY (gdk_display_get_default ()));
+
if (!data->skip_response)
{
g_slist_free_full (self->custom_files, g_object_unref);