[gtk+] wayland: Clean up a bit
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gtk+] wayland: Clean up a bit
- Date: Mon, 10 Mar 2014 17:41:35 +0000 (UTC)
commit fb51bbc5658205c8522c65bef6d30422c22a7402
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Mar 10 13:39:55 2014 -0400
    wayland: Clean up a bit
 gdk/wayland/gdkwindow-wayland.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index a19261a..1176fd5 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -1134,7 +1134,6 @@ static void
 gdk_wayland_window_map (GdkWindow *window)
 {
   GdkWindowImplWayland *impl = GDK_WINDOW_IMPL_WAYLAND (window->impl);
-  GdkWindowImplWayland *parent;
   GdkWindow *transient_for;
 
   if (!impl->mapped && !impl->use_custom_surface)
@@ -1162,15 +1161,13 @@ gdk_wayland_window_map (GdkWindow *window)
           struct wl_seat *grab_input_seat = NULL;
           GdkWindowImplWayland *tmp_impl;
 
-          parent = GDK_WINDOW_IMPL_WAYLAND (transient_for->impl);
-
           /* Use the device that was used for the grab as the device for
            * the popup window setup - so this relies on GTK+ taking the
            * grab before showing the popup window.
            */
           grab_input_seat = impl->grab_input_seat;
 
-          tmp_impl = parent;
+          tmp_impl = GDK_WINDOW_IMPL_WAYLAND (transient_for->impl);
           while (!grab_input_seat)
             {
               grab_input_seat = tmp_impl->grab_input_seat;
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]