[mutter/wayland] xwayland: Shuffle some code around



commit 1a62ac9276d4c9a80055e985bd637a4135247eec
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Fri Jan 31 11:24:02 2014 -0500

    xwayland: Shuffle some code around

 src/wayland/meta-xwayland.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/wayland/meta-xwayland.c b/src/wayland/meta-xwayland.c
index 44f6c41..33b3b8d 100644
--- a/src/wayland/meta-xwayland.c
+++ b/src/wayland/meta-xwayland.c
@@ -44,11 +44,11 @@ xserver_set_window_id (struct wl_client *client,
   MetaWindow *window;
 
   window = meta_display_lookup_x_window (display, xid);
-  if (window)
-    {
-      surface->window = window;
-      window->surface = surface;
-    }
+  if (!window)
+    return;
+
+  surface->window = window;
+  window->surface = surface;
 }
 
 static const struct xserver_interface xserver_implementation = {


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