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,8 +129,10 @@ fn setActivated(self: Self, activated: bool) void {
self.xwayland_surface.setMinimized(false);
}
self.xwayland_surface.activate(activated);
if (activated) {
self.xwayland_surface.restack(null, .above);
}
}
/// Get the current title of the xwayland surface if any.
pub fn getTitle(self: Self) ?[*:0]const u8 {