mirror of
https://github.com/vale981/bspwm
synced 2025-03-06 02:01:42 -05:00
Don't need to apply layout after "close"
This commit is contained in:
parent
723edc7556
commit
575bf9336a
2 changed files with 4 additions and 3 deletions
6
events.c
6
events.c
|
@ -227,7 +227,6 @@ void unmap_notify(xcb_generic_event_t *evt)
|
|||
|
||||
window_location_t loc;
|
||||
if (locate_window(e->window, &loc)) {
|
||||
PRINTF("remove node in unmap notify %X\n", e->window);
|
||||
remove_node(loc.desktop, loc.node);
|
||||
apply_layout(loc.desktop, loc.desktop->root, root_rect);
|
||||
}
|
||||
|
@ -272,9 +271,10 @@ void client_message(xcb_generic_event_t *evt)
|
|||
} else if (e->type == ewmh->_NET_ACTIVE_WINDOW) {
|
||||
if (loc.desktop == desk && desk->focus != NULL && desk->focus->client->fullscreen)
|
||||
return;
|
||||
apply_layout(loc.desktop, loc.desktop->root, root_rect);
|
||||
if (desk != loc.desktop)
|
||||
if (desk != loc.desktop) {
|
||||
apply_layout(loc.desktop, loc.desktop->root, root_rect);
|
||||
select_desktop(loc.desktop);
|
||||
}
|
||||
focus_node(loc.desktop, loc.node, true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,6 +38,7 @@ void process_message(char *msg, char *rsp)
|
|||
return;
|
||||
} else if (strcmp(cmd, "close") == 0) {
|
||||
window_close(desk->focus);
|
||||
return;
|
||||
} else if (strcmp(cmd, "kill") == 0) {
|
||||
window_kill(desk, desk->focus);
|
||||
} else if (strcmp(cmd, "magnetise") == 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue