diff --git a/lib/awful/client.lua.in b/lib/awful/client.lua.in index 4a92acec..8addc691 100644 --- a/lib/awful/client.lua.in +++ b/lib/awful/client.lua.in @@ -502,8 +502,10 @@ function client.movetoscreen(c, s) s = sel.screen + 1 end if s > sc then s = 1 elseif s < 1 then s = sc end - sel.screen = s - screen.focus(s) + if #tag.selectedlist(s) > 0 then + sel.screen = s + screen.focus(s) + end end end