diff --git a/core/titlebar.lua b/core/titlebar.lua index 45662df..6bd711d 100644 --- a/core/titlebar.lua +++ b/core/titlebar.lua @@ -65,12 +65,12 @@ local menu_widget = menu({ }, { "Stop task", function() - awful.spawn("kill "..tostring(c.pid)) + awful.spawn("kill "..tostring(client.focus.pid)) end }, { "Kill task", function() - awful.spawn("kill -s KILL "..tostring(c.pid)) + awful.spawn("kill -s KILL "..tostring(client.focus.pid)) end }, { "Debug info",