aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--river/XwaylandView.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/river/XwaylandView.zig b/river/XwaylandView.zig
index d071e60..303c687 100644
--- a/river/XwaylandView.zig
+++ b/river/XwaylandView.zig
@@ -129,7 +129,9 @@ fn setActivated(self: Self, activated: bool) void {
self.xwayland_surface.setMinimized(false);
}
self.xwayland_surface.activate(activated);
- self.xwayland_surface.restack(null, .above);
+ if (activated) {
+ self.xwayland_surface.restack(null, .above);
+ }
}
/// Get the current title of the xwayland surface if any.