Welcome to awesome bug tracking system.

FS#554 - save pointer coordinates when switching screens

Attached to Project: awesome
Opened by Angel Olivera (redondos) - Wednesday, 08 July 2009, 17:53 GMT
Last edited by Uli Schlachter (psychon) - Saturday, 20 October 2012, 11:08 GMT
Task Type Feature Request
Category Lua libraries → awful
Status Closed
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version 3.3.1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


IMHO it would be very helpful if the mouse position was saved and restored when switching screens (using awful.screen.focus). You almost never want the cursor on the top left corner of the screen.
This task depends upon

Closed by  Uli Schlachter (psychon)
Saturday, 20 October 2012, 11:08 GMT
Reason for closing:  Fixed
Additional comments about closing:  commit 34c1c7d4165586c674e6f52bc6ea3a446f503144
Author: Abdó Roig-Maranges <>
Date: Fri Sep 14 20:14:22 2012 +0200

Makes awful.screen.focus keep the cursor position on screen

When changing focus to an other screen, awful.screen.focus keeps relative
position of the cursor, instead of moving to the top left corner. Does not
trigger mouse:enter and mouse:leave signals.

Signed-off-by: Uli Schlachter <>