From c41231cc0fdc791a7a69cdd77af51c8162f44aa4 Mon Sep 17 00:00:00 2001 From: Robert Ancell Date: Wed, 5 Nov 2014 15:50:15 +1300 Subject: [PATCH] mir: Don't assert on unknown Mir events. If we get a Mir event we don't understand generate a warning instead of an assert. --- gdk/mir/gdkmireventsource.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gdk/mir/gdkmireventsource.c b/gdk/mir/gdkmireventsource.c index 7396eba8b1..58b918e69b 100644 --- a/gdk/mir/gdkmireventsource.c +++ b/gdk/mir/gdkmireventsource.c @@ -413,8 +413,14 @@ gdk_mir_event_source_queue_event (GdkDisplay *display, case mir_event_type_resize: handle_resize_event (window, &event->resize); break; + case mir_event_type_prompt_session_state_change: + // FIXME? + break; + case mir_event_type_orientation: + // FIXME? + break; default: - g_assert_not_reached (); + g_warning ("Ignoring unknown Mir event %d", event->type); // FIXME? break; }