Add context to the unfocus signal

This commit is contained in:
Ksaper 2023-03-16 04:37:55 +02:00
parent 6c76dc9b17
commit 566a5a9bd9
1 changed files with 2 additions and 2 deletions

View File

@ -736,7 +736,7 @@ function text_input:focus()
self:emit_signal("focus")
end
function text_input:unfocus()
function text_input:unfocus(context)
local wp = self._private
if self:get_focused() == false then
return
@ -751,7 +751,7 @@ function text_input:unfocus()
awful.keygrabber.stop(wp.keygrabber)
wp.focused = false
self:emit_signal("unfocus", self:get_text())
self:emit_signal("unfocus", context or "normal", self:get_text())
end
function text_input:toggle()