From 354af424badb614533c31b08e120a4e1412150c0 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 28 Jul 2008 16:06:06 +0200 Subject: [PATCH] awful: movetotag: check that tag and client screen are identical Signed-off-by: Julien Danjou --- lib/awful.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/awful.lua b/lib/awful.lua index 9818ea45..e2a51369 100644 --- a/lib/awful.lua +++ b/lib/awful.lua @@ -283,7 +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(); + 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