From 566a5a9bd99beee21d39fd1d67ab1de4115612f4 Mon Sep 17 00:00:00 2001 From: Ksaper Date: Thu, 16 Mar 2023 04:37:55 +0200 Subject: [PATCH] Add context to the unfocus signal --- widget/app_launcher/text_input.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/widget/app_launcher/text_input.lua b/widget/app_launcher/text_input.lua index b6ea89b..b91b96a 100644 --- a/widget/app_launcher/text_input.lua +++ b/widget/app_launcher/text_input.lua @@ -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()