mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-10 13:29:55 -05:00
fix: avoid set null foreign_toplevel
This commit is contained in:
parent
6fee372144
commit
7c28467181
1 changed files with 1 additions and 1 deletions
|
|
@ -1580,7 +1580,7 @@ void swallow(Client *c, Client *w) {
|
|||
if (!c->foreign_toplevel && c->mon)
|
||||
add_foreign_toplevel(c);
|
||||
|
||||
if (c->isminied) {
|
||||
if (c->isminied && c->foreign_toplevel) {
|
||||
wlr_foreign_toplevel_handle_v1_set_activated(c->foreign_toplevel,
|
||||
false);
|
||||
wlr_foreign_toplevel_handle_v1_set_minimized(c->foreign_toplevel, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue