bindings: don't move apps to other screen when there is none

This commit is contained in:
Vincent Bernat 2013-04-20 22:29:03 +02:00
parent 0403154128
commit 8d39eb9c83
2 changed files with 2 additions and 0 deletions

View file

@ -235,6 +235,7 @@ config.keys.client = awful.util.table.join(
"Close"),
awful.key({ modkey, }, "o",
function (c)
if screen.count() == 1 then return nil end
local s = awful.util.cycle(screen.count(), c.screen + 1)
if awful.tag.selected(s) then
c.screen = s