opt: optimize minimize state set

This commit is contained in:
DreamMaoMao 2025-08-23 18:39:01 +08:00
parent 916ba783ee
commit 0b21761e19
2 changed files with 8 additions and 4 deletions

View file

@ -93,6 +93,8 @@ static inline void client_activate_surface(struct wlr_surface *s,
#ifdef XWAYLAND
struct wlr_xwayland_surface *xsurface;
if ((xsurface = wlr_xwayland_surface_try_from_wlr_surface(s))) {
if (activated && xsurface->minimized)
wlr_xwayland_surface_set_minimized(xsurface, false);
wlr_xwayland_surface_activate(xsurface, activated);
return;
}