From 7419a99827e67256ceea569ccb475363e955caa8 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 28 Jul 2008 16:09:01 +0200 Subject: [PATCH] awful: toggletag: check that tag and client screen are identical Signed-off-by: Julien Danjou --- lib/awful.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/awful.lua b/lib/awful.lua index e2a51369..414286d6 100644 --- a/lib/awful.lua +++ b/lib/awful.lua @@ -283,9 +283,9 @@ end -- @para c Optional client to move, otherwise the focused one is used. function P.client.movetotag(target, c) local sel = c or client.focus_get(); + -- Check that tag and client screen are identical if sel.screen ~= target.screen then return end local tags = tag.get(sel.screen) - -- Check that tags and client screen are identical for k, t in pairs(tags) do sel:tag(t, false) end @@ -297,6 +297,8 @@ end -- @param c Optional client to toggle, otherwise the focused one is used. function P.client.toggletag(target, c) local sel = c or client.focus_get(); + -- Check that tag and client screen are identical + if sel.screen ~= target.screen then return end local toggle = false if sel then -- Count how many tags has the client