mir: ignore resize events

This commit is contained in:
William Hua 2017-03-13 00:06:30 -04:00
parent 05a060c6a6
commit 91f4b0c31f

View File

@ -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;
}
}