Use the last focused window instead of the last opened window.

This commit is contained in:
joshaber
2016-01-01 12:18:48 -05:00
parent 9e7cb15c2c
commit dcd860ae6f

View File

@@ -367,7 +367,7 @@ class AtomApplication
darwin: 22
win32: 26
dimensions = @windows[@windows.length - 1]?.getDimensions()
dimensions = (@focusedWindow() ? @lastFocusedWindow)?.getDimensions()
offset = offsetByPlatform[process.platform]
if dimensions? and offset?
dimensions.x += offset