mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-07-01 12:40:36 +00:00
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.
This commit is contained in:
parent
117f12e4d4
commit
e9472743e5
|
@ -1 +0,0 @@
|
||||||
qb64.bas
|
|
|
@ -637,13 +637,15 @@ DO
|
||||||
idedeltxt 'removes temporary strings (typically created by guibox commands) by setting an index to 0
|
idedeltxt 'removes temporary strings (typically created by guibox commands) by setting an index to 0
|
||||||
STATIC ForceResize
|
STATIC ForceResize
|
||||||
if IDE_AutoPosition then
|
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
|
IF IDE_TopPosition <> _SCREENY OR IDE_LeftPosition <> _SCREENX THEN
|
||||||
WriteConfigSetting "'[IDE DISPLAY SETTINGS]", "IDE_TopPosition" , str$(_SCREENY)
|
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_LeftPosition" , str$(_SCREENX)
|
WriteConfigSetting "'[IDE DISPLAY SETTINGS]", "IDE_TopPosition" , str$(_SCREENY)
|
||||||
IDE_TopPosition = _SCREENY: IDE_LeftPosition = _SCREENX
|
WriteConfigSetting "'[IDE DISPLAY SETTINGS]", "IDE_LeftPosition" , str$(_SCREENX)
|
||||||
|
IDE_TopPosition = _SCREENY: IDE_LeftPosition = _SCREENX
|
||||||
|
END IF
|
||||||
END IF
|
END IF
|
||||||
end if
|
'end if
|
||||||
end if
|
end if
|
||||||
|
|
||||||
IF _RESIZE or ForceResize THEN
|
IF _RESIZE or ForceResize THEN
|
||||||
|
|
Loading…
Reference in a new issue