]> git.mdlowis.com Git - proto/labwc.git/commitdiff
xwayland: Only perform top-left boundary check when using ssd
authorJoshua Ashton <joshua@froggi.es>
Sun, 17 Oct 2021 01:39:19 +0000 (01:39 +0000)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sun, 17 Oct 2021 11:22:01 +0000 (12:22 +0100)
We don't have decorations so we shouldn't account for them.

Closes: #53
Signed-off-by: Joshua Ashton <joshua@froggi.es>
src/xwayland.c

index 6e08fc46f58284c3e8117e1652700aad2b34e489..bd9966f66fb1df08c3c1d615901c752097cb2a3f 100644 (file)
@@ -213,7 +213,9 @@ map(struct view *view)
                view->been_mapped = true;
        }
 
-       top_left_edge_boundary_check(view);
+       if (view->ssd.enabled) {
+               top_left_edge_boundary_check(view);
+       }
 
        /* Add commit here, as xwayland map/unmap can change the wlr_surface */
        wl_signal_add(&view->xwayland_surface->surface->events.commit,