From e9472743e50e228364c7c441bf7553e3d4cb65c8 Mon Sep 17 00:00:00 2001 From: SteveMcNeill Date: Fri, 4 Mar 2016 14:51:08 -0500 Subject: [PATCH] Path to IDE Auto-position Since _SCREENHIDE doesn't currently work on Linux, alterations were made to the auto-position routine to keep the IDE from storing screen positions when minimized and closed that would make it reopen off-screen and impossible to move/position. --- internal/source/files.txt | 1 - source/ide/ide_methods.bas | 12 +++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) delete mode 100644 internal/source/files.txt diff --git a/internal/source/files.txt b/internal/source/files.txt deleted file mode 100644 index e21d591b2..000000000 --- a/internal/source/files.txt +++ /dev/null @@ -1 +0,0 @@ -qb64.bas diff --git a/source/ide/ide_methods.bas b/source/ide/ide_methods.bas index cdf50f9b8..86078d2e1 100644 --- a/source/ide/ide_methods.bas +++ b/source/ide/ide_methods.bas @@ -637,13 +637,15 @@ DO idedeltxt 'removes temporary strings (typically created by guibox commands) by setting an index to 0 STATIC ForceResize if IDE_AutoPosition then - if _SCreenhide = 0 then + 'if _SCreenhide = 0 then 'Screenhide currently does not work in Linux, so we need a different check IF IDE_TopPosition <> _SCREENY OR IDE_LeftPosition <> _SCREENX THEN - WriteConfigSetting "'[IDE DISPLAY SETTINGS]", "IDE_TopPosition" , str$(_SCREENY) - WriteConfigSetting "'[IDE DISPLAY SETTINGS]", "IDE_LeftPosition" , str$(_SCREENX) - IDE_TopPosition = _SCREENY: IDE_LeftPosition = _SCREENX + IF _SCREENY => -_height * _fontheight AND _SCREENX => -_width * _fontwidth THEN 'Don't record the position if it's off the screen, past the point where we can drag it back into a different position. + WriteConfigSetting "'[IDE DISPLAY SETTINGS]", "IDE_TopPosition" , str$(_SCREENY) + WriteConfigSetting "'[IDE DISPLAY SETTINGS]", "IDE_LeftPosition" , str$(_SCREENX) + IDE_TopPosition = _SCREENY: IDE_LeftPosition = _SCREENX + END IF END IF - end if + 'end if end if IF _RESIZE or ForceResize THEN