diff options
Diffstat (limited to 'utils.lua')
-rw-r--r-- | utils.lua | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -17,15 +17,15 @@ local function map_screen_physical(n) table.sort(screens, screen_cmp) if screens[n] ~= nil then - return screens[n][1] + return screens[n][2] end return nil end local function screen_focus_physical(n) - local idx_logical = map_screen_physical(n) - if idx_logical then - awful.screen.focus(idx_logical) + local s = map_screen_physical(n) + if s then + awful.screen.focus(s) end end |