mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-04-06 07:15:53 -04:00
unmap里标记好已经要删除
This commit is contained in:
parent
085971a074
commit
303802498b
1 changed files with 7 additions and 5 deletions
12
main.c
12
main.c
|
|
@ -1754,7 +1754,7 @@ void client_commit(Client *c) {
|
||||||
wlr_output_schedule_frame(c->mon->wlr_output);
|
wlr_output_schedule_frame(c->mon->wlr_output);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
commitnotify(struct wl_listener *listener, void *data) {
|
commitnotify(struct wl_listener *listener, void *data) {
|
||||||
Client *c = wl_container_of(listener, c, commit);
|
Client *c = wl_container_of(listener, c, commit);
|
||||||
|
|
||||||
|
|
@ -3096,7 +3096,7 @@ minimizenotify(struct wl_listener *listener, void *data) {
|
||||||
// wlr_xdg_surface_schedule_configure(c->surface.xdg);
|
// wlr_xdg_surface_schedule_configure(c->surface.xdg);
|
||||||
// togglefakefullscreen(&(Arg){0});
|
// togglefakefullscreen(&(Arg){0});
|
||||||
Client *c = wl_container_of(listener, c, minimize);
|
Client *c = wl_container_of(listener, c, minimize);
|
||||||
|
|
||||||
if(!c || c->iskilling)
|
if(!c || c->iskilling)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
@ -3776,7 +3776,7 @@ void resize(Client *c, struct wlr_box geo, int interact) {
|
||||||
set_open_animaiton(c, c->geom);
|
set_open_animaiton(c, c->geom);
|
||||||
} else {
|
} else {
|
||||||
c->animainit_geom = c->animation.current;
|
c->animainit_geom = c->animation.current;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (c->isnoborder || c->iskilling) {
|
if (c->isnoborder || c->iskilling) {
|
||||||
c->bw = 0;
|
c->bw = 0;
|
||||||
|
|
@ -4835,6 +4835,8 @@ void unmapnotify(struct wl_listener *listener, void *data) {
|
||||||
/* Called when the surface is unmapped, and should no longer be shown. */
|
/* Called when the surface is unmapped, and should no longer be shown. */
|
||||||
Client *c = wl_container_of(listener, c, unmap);
|
Client *c = wl_container_of(listener, c, unmap);
|
||||||
|
|
||||||
|
c->iskilling = 1;
|
||||||
|
|
||||||
if (c == grabc) {
|
if (c == grabc) {
|
||||||
cursor_mode = CurNormal;
|
cursor_mode = CurNormal;
|
||||||
grabc = NULL;
|
grabc = NULL;
|
||||||
|
|
@ -5391,7 +5393,7 @@ void activatex11(struct wl_listener *listener, void *data) {
|
||||||
void // 0.7
|
void // 0.7
|
||||||
configurex11(struct wl_listener *listener, void *data) {
|
configurex11(struct wl_listener *listener, void *data) {
|
||||||
Client *c = wl_container_of(listener, c, configure);
|
Client *c = wl_container_of(listener, c, configure);
|
||||||
|
|
||||||
if(!c || c->iskilling)
|
if(!c || c->iskilling)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
@ -5522,4 +5524,4 @@ int main(int argc, char *argv[]) {
|
||||||
|
|
||||||
usage:
|
usage:
|
||||||
die("Usage: %s [-v] [-d] [-s startup command]", argv[0]);
|
die("Usage: %s [-v] [-d] [-s startup command]", argv[0]);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue