mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-06-13 14:33:08 -04:00
test event bind
This commit is contained in:
parent
33735a796f
commit
8c0725464c
1 changed files with 6 additions and 8 deletions
14
src/mango.c
14
src/mango.c
|
|
@ -2598,15 +2598,13 @@ void closemon(Monitor *m) {
|
|||
|
||||
wl_list_for_each(c, &clients, link) {
|
||||
if (c->mon == m) {
|
||||
|
||||
if (c->foreign_toplevel) {
|
||||
wlr_foreign_toplevel_handle_v1_output_leave(c->foreign_toplevel,
|
||||
c->mon->wlr_output);
|
||||
wlr_foreign_toplevel_handle_v1_destroy(c->foreign_toplevel);
|
||||
c->foreign_toplevel = NULL;
|
||||
}
|
||||
if (selmon == NULL) {
|
||||
if (c->foreign_toplevel) {
|
||||
wlr_foreign_toplevel_handle_v1_output_leave(
|
||||
c->foreign_toplevel, c->mon->wlr_output);
|
||||
wlr_foreign_toplevel_handle_v1_destroy(c->foreign_toplevel);
|
||||
c->foreign_toplevel = NULL;
|
||||
}
|
||||
|
||||
c->mon = NULL;
|
||||
} else {
|
||||
client_change_mon(c, selmon);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue