OhmNomNom / thyme

A fork of mintty, for the modern world
GNU General Public License v3.0
0 stars 0 forks source link

Opening a new window ignores Maximized setting #189

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When opening a new mintty window using the 'New' window menu command or
Alt+F2 shortcut, any Maximized/Minimized setting passed to the original
window via the STARTUPINFO isn't inherited.

Unless there's some way to pass a STARTUPINFO struct to a process started
with spawn(), a new command line option will be needed to address this.

Original issue reported on code.google.com by andy.koppe on 27 May 2010 at 4:09

GoogleCodeExporter commented 9 years ago
The current wikipedia article on the spawn functions (at 
http://en.wikipedia.org/w/index.php?title=Spawn_(computing)&oldid=341902440) 
mentions 
_exec_showset and _exec_showget functions for controlling how spawned program 
windows 
are shown. But on further investigation it appears that those functions are 
specific 
to the "Digital Mars C++ Runtime Library". (See 
http://www.digitalmars.com/rtl/process.html). There's no mention of them on 
MSDN or 
in any of the Cygwin, MinGW, or Visual C++ header files.

What could be done is to invoke the new mintty directly using CreateProcess 
instead 
of spawn() and pass the original STARTUPINFO along, but that would lose the 
Unix 
semantics implemented by Cygwin's spawn().

So a new option it will have to be: '--show normal/min/max/full', with the 
added 
bonus of being able to start mintty in fullscreen mode.

Original comment by andy.koppe on 30 May 2010 at 7:53

GoogleCodeExporter commented 9 years ago
Implemented the option in r892 on trunk. Decided to name it '--window', with 
short 
option '-w'.

Original comment by andy.koppe on 30 May 2010 at 7:33

GoogleCodeExporter commented 9 years ago
Verified for 0.7-beta3.

Original comment by andy.koppe on 2 Jun 2010 at 6:48