From 81b5e6e54bad698aa9bcc1cadc39df308ef8cd59 Mon Sep 17 00:00:00 2001 From: Alexander Kondratev Date: Mon, 30 Sep 2013 14:41:57 +0400 Subject: [PATCH] fixed #1184. Calling movetotag method throw an error on a blank screen Signed-off-by: Uli Schlachter --- awesomerc.lua.in | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/awesomerc.lua.in b/awesomerc.lua.in index 54c42fb48..a67247a43 100644 --- a/awesomerc.lua.in +++ b/awesomerc.lua.in @@ -315,16 +315,20 @@ for i = 1, 9 do end), awful.key({ modkey, "Shift" }, "#" .. i + 9, function () - local tag = awful.tag.gettags(client.focus.screen)[i] - if client.focus and tag then - awful.client.movetotag(tag) + if client.focus then + local tag = awful.tag.gettags(client.focus.screen)[i] + if tag then + awful.client.movetotag(tag) + end end end), awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9, function () - local tag = awful.tag.gettags(client.focus.screen)[i] - if client.focus and tag then - awful.client.toggletag(tag) + if client.focus then + local tag = awful.tag.gettags(client.focus.screen)[i] + if tag then + awful.client.toggletag(tag) + end end end)) end