Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vincentbernat/3861537 to your computer and use it in GitHub Desktop.
Save vincentbernat/3861537 to your computer and use it in GitHub Desktop.
Patch to fix timer issue in shifty
From a1631d9ee1bf27f0417af8733229f550f08672f9 Mon Sep 17 00:00:00 2001
From: Vincent Bernat <bernat@luffy.cx>
Date: Tue, 9 Oct 2012 23:19:35 +0200
Subject: [PATCH] Make timers local so that they don't mangle each others.
---
init.lua | 2 ++
1 file changed, 2 insertions(+)
diff --git a/init.lua b/init.lua
index 90cedeb..e800329 100644
--- a/init.lua
+++ b/init.lua
@@ -393,6 +393,7 @@ function add(args)
-- from being rendered until input
awful.tag.setproperty(t, "initial", true)
local f
+ local tmr
if args.position then
f = function() rename(t, args.rename, true); tmr:stop() end
else
@@ -770,6 +771,7 @@ function sweep()
not awful.tag.getproperty(t, "leave_kills") then
local delay = awful.tag.getproperty(t, "sweep_delay")
if delay then
+ local tmr
local f = function()
del(t); tmr:stop()
end
--
1.7.10.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment