From 0060ea9d63b3e1e6ed9a254a04612d1143e561a0 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 11 Oct 2015 12:44:28 +0200 Subject: [PATCH] Fix awful.screen.focus This is broken since 23b2fae6a908e. Closes https://github.com/awesomeWM/awesome/pull/516. Signed-off-by: Uli Schlachter --- lib/awful/screen.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/awful/screen.lua b/lib/awful/screen.lua index 57cd3439..f64e13fc 100644 --- a/lib/awful/screen.lua +++ b/lib/awful/screen.lua @@ -60,6 +60,7 @@ function screen.focus(_screen) if not screen.mouse_per_screen[_screen] then -- This is the first time we enter this screen, -- keep relative mouse position on the new screen + pos = capi.mouse.coords() local relx = (pos.x - capi.screen[s].geometry.x) / capi.screen[s].geometry.width local rely = (pos.y - capi.screen[s].geometry.y) / capi.screen[s].geometry.height