Processing Ajax...

Title

Message

Confirm

Confirm

Confirm

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure?

User Image
sfwrtr
273 discussion posts
Full title: Window positions not restored for cmd.exe and powershell terminal windows after Restore Windows Position from Last Save runs after PC was unlocked.

This appears to be a variation of https://www.displayfusion.com/Discussions/View/thunderbird-and-restore-window-positions-positions-but-doesn39t-resize-properly/?ID=17648d15-b5f4-42e1-a80b-a43482fe76e4, but the circumstances are somewhat different.

For obvious reasons, I am now working at home using Remote Desktop on my Mac to use my Windows 10 machine in the office. I have the main screen (monitor 1 - the Mac built-in) and a portrait monitor (monitor 2).

If I...
    - Set my cmd.exe window and powershell window on monitor 2.
    - Click Save Window Positions.
    - Close remote desktop.
    - Run Remote Desktop and connect to the PC...
The cmd.exe window and powershell window appear on monitor 1.

Note: Restore Window Positions runs when I connect using a desktop unlocked trigger. Just to be absolutely clear, all programs, for example Firefox or OneNote, appear after unlocking on monitor 1 even if their positions had been saved on monitor 2. I am now requiring a manual restore for anything. In other words, if I click Restore Window Positions from Last Save (this will be the second time it is run), all windows except cmd.exe and powershell restore to monitor 1.

Just to make this seem even more twisted, it looks like DF is trying to restore cmd.exe and powershell to monitor 2. Windows flit around. In the end, the restore fails for these two windows.

I am running DF 9.7 (Beta 10); Windows 10 is up-to-date as of today. Before the updated both today, windows other that cmd.exe and powershell restored to monitor 1 at unlock. Now they act as described above. As best I can remember, this did work in the past, but it was a number of weeks ago.

Please reply with what you need from me to debug this.
Apr 23, 2020 (modified Apr 23, 2020)  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
I've just had a chance to test this out here, and both cmd and powershell work when I restore the positions. If you save the positions, and just move one of the cmd or powershell windows, then restore the positions (without the disconnect/connect), does it work?
Apr 24, 2020  • #2
User Image
sfwrtr
273 discussion posts
I repositioned the cmd.exe and powershell, each sized to a half-screen above and below below on the portrait monitor. This is my usual setup. I then presssed save, moved them by dragging, and pressed restore. They restored correctly.

I then used the move to monitor function, which caused each to maximize on the opposite landscape monitor. When I pressed restore, they tried to move back to the portrait monitor, but failed. After the process finished, I pressed restore again and then it succeeded and restored correctly.
windows from the portrait monitor (low-res) to the retina MacBook landscape side, putting them both in the upper lefthand corner. I then pressed Restore....

Wait for it...

They stacked themselves to the lefthand side of the Macbook landscape montor, one above the other, causing one window to be half-off the bottom of the screen! It's like it forgot to restore to the portrait monitor and instead did the correct restore but to the landscape monitor. They did not resize. They only moved.

Interesting, huh?

EDIT: So I dragged the windows to my portrait monitor, so as a lark, I clicked the restore caption button. Boom! They restored now on the portrait monitor in the right place. Willing to bet that's a big clue...

EDIT 2: I went through a cycle where remote desktop closed. When I started it up and it logged in again, I found the two windows stacked on the leftside of the landscape monitor after the unlock trigger did the restore. I found if I just drag the two windows away from the left side a bit (I did an inch), then press restore, the windows restored properly to the portrait monitor! Maybe it has something to do with being against the leftside? I do notice that sometimes, in normal windows mousing around, I cannot resize either terminal window more than a certain size or less. It's like they having programming that prevents it, or Windows does. Doing a maximize in such cases often fixes that. Just saying.
Apr 24, 2020 (modified Apr 25, 2020)  • #3
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ok, thanks! This sounds similar to another issue we're currently working on for Beta 11. I'll let you know as soon as it's available to try out and we'll go from there :)
Apr 27, 2020  • #4
User Image
sfwrtr
273 discussion posts
Got it. Will wait expectantly.
Apr 27, 2020  • #5
Keith Lammers (BFS)'s profile on WallpaperFusion.com
We've just posted 9.7 Beta 11 this afternoon. Could you give it a try and let me know how it works out?

Thanks!
May 8, 2020  • #6
User Image
sfwrtr
273 discussion posts
I tried it last night.
    The Good: Using the caption bar Restore button restores the terminal windows properly, and all other windows, too.
    The Bad: The windows no longer automatically restore when Windows unlocks.
(I looked through DF for a trigger to do a restore on unlock, but there isn't one! Regardless, before this beta, it used to automatically restore. Is auto-restore a feature I can't find? Am I missing something? What do I need to do to do an auto-Restore when Windows unlocks?)
May 8, 2020  • #7
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Could you attach a backup of your settings?
May 12, 2020  • #8
User Image
sfwrtr
273 discussion posts
Quote:
Could you attach a backup of your settings?

Sure. Here you go.
• Attachment [protected]: DisplayFusion Backup (2020-05-11 @ 18-17, 9.6.99.111, NUCNUC-ROBERTHQ, SettingsWindow).reg [563,422 bytes]
May 12, 2020  • #9
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Thanks! So I'm seeing a Window Position Profile in this settings backup, but it's not assigned to any Monitor Profiles. When you unlock the computer, if you open the Monitor Configuration window, does it show that a profile has been detected in the top-left of the window?

If so, could you try assigning the Window Position Profile to that Monitor Profile in the "Manage Monitor Profiles" window?

Thanks!
May 15, 2020  • #10
User Image
sfwrtr
273 discussion posts
Windows Position Profile is a new feature (at least to me), so I don't quite understand what you are asking. I will have to research it when I have time. Sorry I took so long to respond.
Jun 22, 2020  • #11
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Sorry, I think we're getting our wires crossed here. I missed the fact that you mentioned you were using the save/restore functions from the Settings > Functions tab.

If you set key combinations on those functions and manually run them, do the positions for cmd and powershell get restored?
Jun 23, 2020  • #12
User Image
sfwrtr
273 discussion posts
Yes, the keyboard short-cut restores them. Cmd.exe and Powershell.
Jun 23, 2020 (modified Jun 23, 2020)  • #13
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ok, that's good at least! I restored your settings backup, but there aren't any Triggers in it for saving/restoring the positions. Do you have them setup? If so, could you send me screenshots of the edit window for both the save and the restore triggers?
Jul 2, 2020  • #14
User Image
sfwrtr
273 discussion posts
There is no triggers that restore positions. On for turning off numlock, one for finding Firefox and putting it on the correct monitor. As best as I remember, Windows restored themselves to the proper monitors when I went from two to four monitors after having gone from four to two monitors. You seem to be implying that happened not because of DF, but because of some other factor?
Jul 2, 2020  • #15
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Are the Window Position Profiles assigned to the Monitor Profiles?
Jul 7, 2020  • #16
User Image
sfwrtr
273 discussion posts
No.
Jul 7, 2020  • #17
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ok, interesting. The only ways that a Window Position Profile could automatically be loaded would be if they're assigned to a Monitor Profile, or set to run from a Trigger rule.

Could you try adding a Trigger rule that uses the "Desktop Unlocked" event, and runs the "Load Window Position Profile: Profile Name" function?
Jul 7, 2020  • #18
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)