From a6466864f945d3a5526a89efcf31375e82969a20 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Fri, 4 Oct 2013 11:27:35 +0200 Subject: [PATCH] awful.screen.focus: Don't move mouse to (0, 0) first (FS#1173) Setting mouse.screen moves the pointer to the top left corner of that screen. However, the very next line would then move the pointer elsewhere again. Thus, the first one wasn't needed at all. Signed-off-by: Uli Schlachter --- lib/awful/screen.lua.in | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/awful/screen.lua.in b/lib/awful/screen.lua.in index 38caf85b..025e0682 100644 --- a/lib/awful/screen.lua.in +++ b/lib/awful/screen.lua.in @@ -61,7 +61,6 @@ function screen.focus(_screen) pos.y = capi.screen[_screen].geometry.y + rely * capi.screen[_screen].geometry.height -- move cursor without triggering signals mouse::enter and mouse::leave - capi.mouse.screen = _screen capi.mouse.coords(pos, true) local c = client.focus.history.get(_screen, 0)