Hi, Attached patch fixes FS#700 - focus shift on toggletag.
--8<-- >From f5a36cd0846b0ca3d4dd1bd445c2a4e0e1b338ce Mon Sep 17 00:00:00 2001 From: Anurag Priyam <anurag08pri...@gmail.com> Date: Mon, 17 Jan 2011 15:44:34 +0530 Subject: [PATCH] fix focus shift caused by toggling tag on a client (FS#700) In awful.client.toggletag(), after resetting the client's tag table, focus the client unless it has been removed from the currently active tag. Signed-off-by: Anurag Priyam <anurag08pri...@gmail.com> --- lib/awful/client.lua.in | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/lib/awful/client.lua.in b/lib/awful/client.lua.in index 2b3a658..e1cc526 100644 --- a/lib/awful/client.lua.in +++ b/lib/awful/client.lua.in @@ -454,6 +454,7 @@ function toggletag(target, c) tags[#tags + 1] = target end sel:tags(tags) + if not index then capi.client.focus = sel end end end -- 1.7.2.3 -- Anurag Priyam http://about.me/yeban/
From f5a36cd0846b0ca3d4dd1bd445c2a4e0e1b338ce Mon Sep 17 00:00:00 2001 From: Anurag Priyam <anurag08pri...@gmail.com> Date: Mon, 17 Jan 2011 15:44:34 +0530 Subject: [PATCH] fix focus shift caused by toggling tag on a client (FS#700) In awful.client.toggletag(), after resetting the client's tag table, focus the client unless it has been removed from the currently active tag. Signed-off-by: Anurag Priyam <anurag08pri...@gmail.com> --- lib/awful/client.lua.in | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/lib/awful/client.lua.in b/lib/awful/client.lua.in index 2b3a658..e1cc526 100644 --- a/lib/awful/client.lua.in +++ b/lib/awful/client.lua.in @@ -454,6 +454,7 @@ function toggletag(target, c) tags[#tags + 1] = target end sel:tags(tags) + if not index then capi.client.focus = sel end end end -- 1.7.2.3