Fix prompt disabling other keygrabbers
This commit is contained in:
parent
b9576250ee
commit
04d7af46b3
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue