fix: miss reset foreign toplevel when drag win to other mon

This commit is contained in:
DreamMaoMao 2025-04-07 14:27:36 +08:00
parent 2aea42c275
commit dc75dca262

View file

@ -2288,6 +2288,7 @@ buttonpress(struct wl_listener *listener, void *data) {
/* Drop the window off on its new monitor */ /* Drop the window off on its new monitor */
selmon = xytomon(cursor->x, cursor->y); selmon = xytomon(cursor->x, cursor->y);
setmon(grabc, selmon, 0,true); setmon(grabc, selmon, 0,true);
reset_foreign_tolevel(grabc);
grabc = NULL; grabc = NULL;
return; return;
} else { } else {