[gtk+] mir: Don't assert on unknown Mir events.



commit c41231cc0fdc791a7a69cdd77af51c8162f44aa4
Author: Robert Ancell <robert ancell canonical com>
Date:   Wed Nov 5 15:50:15 2014 +1300

    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 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/gdk/mir/gdkmireventsource.c b/gdk/mir/gdkmireventsource.c
index 7396eba..58b918e 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;
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]