Fix awful.screen.focus
This is broken since 23b2fae6a9
.
Closes https://github.com/awesomeWM/awesome/pull/516.
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
33f8a06594
commit
0060ea9d63
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue