Fix prompt disabling other keygrabbers

This commit is contained in:
Ksaper 2023-02-22 05:17:18 +02:00
parent b9576250ee
commit 04d7af46b3
2 changed files with 11 additions and 1 deletions

View File

@ -665,6 +665,10 @@ end
--- Hides the app launcher
function app_launcher:hide()
if self._private.widget.visible == false then
return
end
self._private.widget.visible = false
self._private.prompt:stop()
self:emit_signal("visibility", false)

View File

@ -350,13 +350,19 @@ end
function prompt:stop()
local wp = self._private
if wp.state == false then
return
end
wp.state = false
if self.reset_on_stop == true then
self:set_text("")
end
awful.keygrabber.stop(wp.grabber)
if wp.grabber then
awful.keygrabber.stop(wp.grabber)
end
generate_markup(self)
self:emit_signal("stopped", wp.text)