Xwayland: only raise views if activated

This commit is contained in:
Isaac Freund 2023-03-06 10:08:10 +01:00
parent b7b371cb4f
commit f21eb4d05b
No known key found for this signature in database
GPG Key ID: 86DED400DDFD7A11

View File

@ -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.