naughty: Do not call `request::display` when suspended.

Fix #3396
This commit is contained in:
Emmanuel Lepage Vallee 2021-09-19 21:52:12 -07:00
parent 0d1e977917
commit 075935fd37
1 changed files with 1 additions and 1 deletions

View File

@ -1033,7 +1033,7 @@ local function create(args)
end end
-- Let all listeners handle the actual visual aspects -- Let all listeners handle the actual visual aspects
if (not n.ignore) and ((not n.preset) or n.preset.ignore ~= true) then if (not n.ignore) and ((not n.preset) or n.preset.ignore ~= true) and (not naughty.suspended) then
naughty.emit_signal("request::display" , n, "new", args) naughty.emit_signal("request::display" , n, "new", args)
naughty.emit_signal("request::fallback", n, "new", args) naughty.emit_signal("request::fallback", n, "new", args)
end end