This commit is contained in:
Eugene Pankov 2017-04-23 22:37:19 +02:00
parent 82e0a9238d
commit d4c3efdea1
3 changed files with 11 additions and 2 deletions

View File

@ -80,7 +80,13 @@ setupWindowManagement = () => {
}) })
electron.ipcMain.on('window-set-bounds', (event, bounds) => { electron.ipcMain.on('window-set-bounds', (event, bounds) => {
app.window.setBounds(bounds, true) app.window.setBounds(bounds)
setTimeout(() => {
let actualBounds = app.window.getBounds()
bounds.width += bounds.x - actualBounds.x
bounds.height += bounds.y - actualBounds.y
app.window.setBounds(bounds)
}, 500)
}) })
electron.ipcMain.on('window-set-always-on-top', (event, flag) => { electron.ipcMain.on('window-set-always-on-top', (event, flag) => {

View File

@ -120,7 +120,9 @@ export class AppRootComponent {
} }
} }
} }
this.docking.dock() setImmediate(() => {
this.docking.dock()
})
} }
getLeftToolbarButtons (): IToolbarButton[] { return this.getToolbarButtons(false) } getLeftToolbarButtons (): IToolbarButton[] { return this.getToolbarButtons(false) }

View File

@ -197,6 +197,7 @@ export class TerminalTabComponent extends BaseTabComponent {
preferenceManager.set('send-encoding', 'raw') preferenceManager.set('send-encoding', 'raw')
preferenceManager.set('ctrl-plus-minus-zero-zoom', false) preferenceManager.set('ctrl-plus-minus-zero-zoom', false)
preferenceManager.set('scrollbar-visible', this.hostApp.platform == Platform.macOS) preferenceManager.set('scrollbar-visible', this.hostApp.platform == Platform.macOS)
preferenceManager.set('copy-on-select', false)
if (config.terminal.colorScheme.foreground) { if (config.terminal.colorScheme.foreground) {
preferenceManager.set('foreground-color', config.terminal.colorScheme.foreground) preferenceManager.set('foreground-color', config.terminal.colorScheme.foreground)