From 91f4b0c31f4f236d2ebc752f28b508583e3ea606 Mon Sep 17 00:00:00 2001 From: William Hua Date: Mon, 13 Mar 2017 00:06:30 -0400 Subject: [PATCH] mir: ignore resize events --- gdk/mir/gdkmireventsource.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/gdk/mir/gdkmireventsource.c b/gdk/mir/gdkmireventsource.c index c7cda56235..f769c82b6b 100644 --- a/gdk/mir/gdkmireventsource.c +++ b/gdk/mir/gdkmireventsource.c @@ -519,17 +519,6 @@ generate_configure_event (GdkWindow *window, send_event (window, get_pointer (window), event); } -static void -handle_resize_event (GdkWindow *window, - const MirResizeEvent *event) -{ - window->width = mir_resize_event_get_width (event); - window->height = mir_resize_event_get_height (event); - _gdk_window_update_size (window); - - generate_configure_event (window, mir_resize_event_get_width (event), mir_resize_event_get_height (event)); -} - static void handle_close_event (GdkWindow *window) { @@ -596,13 +585,10 @@ gdk_mir_event_source_queue_event (GdkDisplay *display, handle_window_event (window, mir_event_get_window_event (event)); break; case mir_event_type_resize: - handle_resize_event (window, mir_event_get_resize_event (event)); break; case mir_event_type_prompt_session_state_change: - // FIXME? break; case mir_event_type_orientation: - // FIXME? break; case mir_event_type_close_window: handle_close_event (window); @@ -615,7 +601,6 @@ gdk_mir_event_source_queue_event (GdkDisplay *display, break; default: g_warning ("Ignoring unknown Mir event %d", mir_event_get_type (event)); - // FIXME? break; } }