From 812268c03f836d3e86307894bfd48472a7e2a083 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 10 Oct 2017 13:00:33 +0200 Subject: Update for awesome 4. --- utils.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'utils.lua') diff --git a/utils.lua b/utils.lua index 1df9690..d1f76dd 100644 --- a/utils.lua +++ b/utils.lua @@ -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 -- cgit v1.2.3