]> git.mdlowis.com Git - proto/labwc.git/commitdiff
xwayland-unmanaged: remove obsolete workaround
authorJohn Lindgren <john@jlindgren.net>
Tue, 18 Nov 2025 07:37:25 +0000 (02:37 -0500)
committerJohn Lindgren <john@jlindgren.net>
Thu, 27 Nov 2025 06:26:55 +0000 (01:26 -0500)
src/xwayland-unmanaged.c

index fe22398a31db48ea42b55265aedf105dda04baa0..00fd2f55c4ce4f199b2a27143297dd4a1311183b 100644 (file)
@@ -162,19 +162,6 @@ handle_dissociate(struct wl_listener *listener, void *data)
        struct xwayland_unmanaged *unmanaged =
                wl_container_of(listener, unmanaged, dissociate);
 
-       if (!unmanaged->mappable.connected) {
-               /*
-                * In some cases wlroots fails to emit the associate event
-                * due to an early return in xwayland_surface_associate().
-                * This is arguably a wlroots bug, but nevertheless it
-                * should not bring down labwc.
-                *
-                * TODO: Potentially remove when starting to track
-                *       wlroots 0.18 and it got fixed upstream.
-                */
-               wlr_log(WLR_ERROR, "dissociate received before associate");
-               return;
-       }
        mappable_disconnect(&unmanaged->mappable);
 }