diff --git a/lib/naughty.lua.in b/lib/naughty.lua.in index 898efc0d8..b1725cff3 100644 --- a/lib/naughty.lua.in +++ b/lib/naughty.lua.in @@ -365,7 +365,9 @@ function notify(args) -- (Setting a textbox' .text to an invalid pattern throws a lua error) if not pcall(setText, "", "\n") then -- That failed, escape everything which might cause an error from pango - setText("[<>&]", { ['<'] = "<", ['>'] = ">", ['&'] = "&" }) + if not pcall(setText, "[<>&]", { ['<'] = "<", ['>'] = ">", ['&'] = "&" }) then + textbox.text = "<Invalid markup, cannot display message>" + end end -- create iconbox