mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-13 13:29:55 -05:00
opt: optimize minimize state set
This commit is contained in:
parent
916ba783ee
commit
0b21761e19
2 changed files with 8 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue