From 4a6ec01f88399a60cb9fa1c0e27e12909f26e0d1 Mon Sep 17 00:00:00 2001 From: Yessiest Date: Fri, 8 Apr 2022 16:51:31 +0400 Subject: [PATCH] Fixed titlebar menu kill/stop buttons --- core/titlebar.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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",