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 <psychon@znc.in>
This commit is contained in:
parent
4368629836
commit
a6466864f9
|
@ -61,7 +61,6 @@ function screen.focus(_screen)
|
||||||
pos.y = capi.screen[_screen].geometry.y + rely * capi.screen[_screen].geometry.height
|
pos.y = capi.screen[_screen].geometry.y + rely * capi.screen[_screen].geometry.height
|
||||||
|
|
||||||
-- move cursor without triggering signals mouse::enter and mouse::leave
|
-- move cursor without triggering signals mouse::enter and mouse::leave
|
||||||
capi.mouse.screen = _screen
|
|
||||||
capi.mouse.coords(pos, true)
|
capi.mouse.coords(pos, true)
|
||||||
|
|
||||||
local c = client.focus.history.get(_screen, 0)
|
local c = client.focus.history.get(_screen, 0)
|
||||||
|
|
Loading…
Reference in New Issue