[8.0b2 x64] windows placement in multi-monitor configuration
Moderators: Hacker, petermad, Stefan2, white
[8.0b2 x64] windows placement in multi-monitor configuration
That's actually an old bug, just reporting as it affects the current beta as well.
It is a nuisance, not really a bug, but still.
Some windows (namely FTP tool, File Search and MRT) may open on a different monitor.
E.g. TC is started on monitor1 but I almost always move it to monitor2. Yet File Search opens on monitor2 and MRT opens on monitor1... (irrelevant of which monitor the main window is placed in) Weird.
It is a nuisance, not really a bug, but still.
Some windows (namely FTP tool, File Search and MRT) may open on a different monitor.
E.g. TC is started on monitor1 but I almost always move it to monitor2. Yet File Search opens on monitor2 and MRT opens on monitor1... (irrelevant of which monitor the main window is placed in) Weird.
- ghisler(Author)
- Site Admin
- Posts: 50479
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
TC remembers the position and size of most windows which can be resized, including ftp connect, synchronize dirs, MRT, compare tool etc. When you use the dialog for the first time, it's always opened over the main window. But when you move TC to a different screen then, the dialog still opens at its old position (except when the screen was turned off in the configuration).
Any better ideas on how to handle this?
Any better ideas on how to handle this?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
I see two possible solutions:ghisler(Author) wrote:Any better ideas on how to handle this?
1. Remember the position relative to the main window.
2. Remember it relative to the current monitor.
I cannot decide as yet which one would be more preferable…
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
Using TC 11.03 / Win10 x64
Using TC 11.03 / Win10 x64
Configurable (via INI): RememberWindowMonitorghisler(Author) wrote:Any better ideas on how to handle this?
Values:
1. Open all new windows in main monitor (always - as is now)
2. Open all new windows in same monitor as TC instance
3. (perhaps) Store monitor info along with size (on "save position") so each window always opens in specific monitor, regardless on where TC instance window is. If monitor does not exist, open in default monitor.
I'm not sure if (1) is needed, perhaps it could be replaced by (3).
- Wanderer -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
- ghisler(Author)
- Site Admin
- Posts: 50479
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
For test purposes, I have added such an option now. It's not documented it the help yet.
Could someone test it, please?
wincmd.ini
[Configuration]
SameScreenAsTC=1
Shows all resizeable dialogs (where TC remembers the position) on the same screen as the main program (32/64).
For example, the tree (Alt+F10) or the search dialog (Ctrl+F) remember their last position. Run TC, open search on same screen, close search. Now move TC to the other screen. Open search again. With SameScreenAsTC=1, the search dialog should now appear on the second screen too. The left and right free space should have the same relations as on the old screen, e.g. if the left gap was twice as wide as the right, this should be the case also on the new screen.
With SameScreenAsTC=0 (default), the dialogs always appear on the screen on which they were closed.
I consider to make SameScreenAsTC=1 the default once this function works as it should.
Could someone test it, please?
wincmd.ini
[Configuration]
SameScreenAsTC=1
Shows all resizeable dialogs (where TC remembers the position) on the same screen as the main program (32/64).
For example, the tree (Alt+F10) or the search dialog (Ctrl+F) remember their last position. Run TC, open search on same screen, close search. Now move TC to the other screen. Open search again. With SameScreenAsTC=1, the search dialog should now appear on the second screen too. The left and right free space should have the same relations as on the old screen, e.g. if the left gap was twice as wide as the right, this should be the case also on the new screen.
With SameScreenAsTC=0 (default), the dialogs always appear on the screen on which they were closed.
I consider to make SameScreenAsTC=1 the default once this function works as it should.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Tested with Ctrl+F, SyncDirs, Find Files, MRT — all seems to work as described.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
Using TC 11.03 / Win10 x64
Using TC 11.03 / Win10 x64
I think it works as one would expect it. Tested under XP/32, the following windows open in the 2nd monitor if TC is in it: BTM, FTP, Find, Pack/unpack dialogs, Buttonbar editing, Network connections, options dialog.ghisler(Author) wrote:Could someone test it, please?
wincmd.ini
[Configuration]
SameScreenAsTC=1
Shows all resizeable dialogs (where TC remembers the position) on the same screen as the main program (32/64).
The only thing that opens in the default monitor (which of course is controllable by windows) is the command prompt!

I really like the fact that if the 2nd monitor has a larger resolution than the 1st one and you open a window in it (i.e. ALT+F7) and move it to the bottom-right corner, if you move TC in the 1st monitor and reopen this window, it does not get outside the screen boundaries. It seems that TC calculates by percentage the window position, relative to the new screen! Pretty nice. My congrats Christian.
- Wanderer -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
- ghisler(Author)
- Site Admin
- Posts: 50479
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
OK, in the next beta, SameScreenAsTC=1 will work only for modal dialogs like search or tree. Add 2 for Lister, and 4 for compare by contents.
Unfortunately that seems to be controlled by Windows itself.The only thing that opens in the default monitor (which of course is controllable by windows) is the command prompt!
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Yes, indeed, that's what i said.ghisler(Author) wrote:Unfortunately that seems to be controlled by Windows itself.The only thing that opens in the default monitor (which of course is controllable by windows) is the command prompt!

Compare by contents already follows the SameScreenAsTC=1 setting. Why change it?ghisler(Author) wrote:OK, in the next beta, SameScreenAsTC=1 will work only for modal dialogs like search or tree. Add 2 for Lister, and 4 for compare by contents.
- Wanderer -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
- ghisler(Author)
- Site Admin
- Posts: 50479
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
So the user has a choice. Lister and Compare are special because they are independent windows. It could make sense to open them on the second screen while working with TC on the first.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50479
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact: