From f21eb4d05b7f6e3a8b8e2641e072d7436814ee5a Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Mon, 6 Mar 2023 10:08:10 +0100 Subject: [PATCH] Xwayland: only raise views if activated --- river/XwaylandView.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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.