From 3c80498891a831b5cff356fd448efd62c77b031f Mon Sep 17 00:00:00 2001
From: Drew DeVault <sir@cmpwn.com>
Date: Tue, 27 Feb 2018 08:25:43 -0500
Subject: [PATCH] Utilize wlr_xwayland_surface_is_unmanaged

---
 sway/desktop/xwayland.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c
index 7933f7b2..519c050e 100644
--- a/sway/desktop/xwayland.c
+++ b/sway/desktop/xwayland.c
@@ -226,7 +226,7 @@ void handle_xwayland_surface(struct wl_listener *listener, void *data) {
 	wl_signal_add(&xsurface->events.map_notify, &sway_surface->map_notify);
 	sway_surface->map_notify.notify = handle_map_notify;
 
-	if (xsurface->override_redirect) {
+	if (wlr_xwayland_surface_is_unmanaged(xsurface)) {
 		// these don't get a container in the tree
 		wl_list_insert(&root_container.sway_root->unmanaged_views,
 			&sway_view->unmanaged_view_link);