mirror of
https://github.com/atom/atom.git
synced 2026-01-25 06:48:28 -05:00
Use the last focused window instead of the last opened window.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user