fix: error judge minimize request
This commit is contained in:
10
src/mango.c
10
src/mango.c
@@ -3418,11 +3418,21 @@ minimizenotify(struct wl_listener *listener, void *data) {
|
||||
// < XDG_TOPLEVEL_WM_CAPABILITIES_SINCE_VERSION)
|
||||
// wlr_xdg_surface_schedule_configure(c->surface.xdg);
|
||||
// togglemaxmizescreen(&(Arg){0});
|
||||
|
||||
Client *c = wl_container_of(listener, c, minimize);
|
||||
struct wlr_xwayland_minimize_event *event = data;
|
||||
|
||||
if (!c || !c->mon || c->iskilling || c->isminied)
|
||||
return;
|
||||
|
||||
if (!client_is_x11(c)) {
|
||||
if (!c->surface.xdg->toplevel->requested.minimized)
|
||||
return;
|
||||
} else {
|
||||
if (!event->minimize)
|
||||
return;
|
||||
}
|
||||
|
||||
set_minized(c);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user