[gtk+/gtk-3-22] mir: ignore resize events



commit 91f4b0c31f4f236d2ebc752f28b508583e3ea606
Author: William Hua <william hua canonical com>
Date:   Mon Mar 13 00:06:30 2017 -0400

    mir: ignore resize events

 gdk/mir/gdkmireventsource.c |   15 ---------------
 1 files changed, 0 insertions(+), 15 deletions(-)
---
diff --git a/gdk/mir/gdkmireventsource.c b/gdk/mir/gdkmireventsource.c
index c7cda56..f769c82 100644
--- a/gdk/mir/gdkmireventsource.c
+++ b/gdk/mir/gdkmireventsource.c
@@ -520,17 +520,6 @@ generate_configure_event (GdkWindow *window,
 }
 
 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)
 {
   send_event (window, get_pointer (window), gdk_event_new (GDK_DESTROY));
@@ -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;
     }
 }


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