mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-08 13:29:56 -05:00
fix: error judge minimize request
This commit is contained in:
parent
9a5273d2be
commit
2b6757f2ad
1 changed files with 10 additions and 0 deletions
10
src/mango.c
10
src/mango.c
|
|
@ -3336,11 +3336,21 @@ minimizenotify(struct wl_listener *listener, void *data) {
|
||||||
// < XDG_TOPLEVEL_WM_CAPABILITIES_SINCE_VERSION)
|
// < XDG_TOPLEVEL_WM_CAPABILITIES_SINCE_VERSION)
|
||||||
// wlr_xdg_surface_schedule_configure(c->surface.xdg);
|
// wlr_xdg_surface_schedule_configure(c->surface.xdg);
|
||||||
// togglemaxmizescreen(&(Arg){0});
|
// togglemaxmizescreen(&(Arg){0});
|
||||||
|
|
||||||
Client *c = wl_container_of(listener, c, minimize);
|
Client *c = wl_container_of(listener, c, minimize);
|
||||||
|
struct wlr_xwayland_minimize_event *event = data;
|
||||||
|
|
||||||
if (!c || !c->mon || c->iskilling || c->isminied)
|
if (!c || !c->mon || c->iskilling || c->isminied)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (!client_is_x11(c)) {
|
||||||
|
if (!c->surface.xdg->toplevel->requested.minimized)
|
||||||
|
return;
|
||||||
|
} else {
|
||||||
|
if (!event->minimize)
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
set_minized(c);
|
set_minized(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue