diff --git a/lib/naughty.lua.in b/lib/naughty.lua.in
index 269eb627..b44d1609 100644
--- a/lib/naughty.lua.in
+++ b/lib/naughty.lua.in
@@ -172,7 +172,7 @@ function notify(args)
notification.idx = #notifications[notification.position] + 1
local title = ""
- if args.title then title = " " .. args.title .. "\n" end
+ if args.title then title = args.title .. "\n" end
-- hook destroy
local die = function () destroy(notification) end
@@ -188,9 +188,10 @@ function notify(args)
-- create textbox
local textbox = widget({ type = "textbox", name = "text", align = "flex" })
+ textbox.margin = 20
textbox:buttons({ button({ }, 1, run),
button({ }, 3, die) })
- textbox.text = string.format('%s %s',
+ textbox.text = string.format('%s%s',
config.font, title, text)
if config.hover_timeout then textbox.mouse_enter = hover_destroy end