Moving maximized window between displays by Win+Shift+Left/Right can't restore it to the original display in the session

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

User avatar
rakunavi
User
Posts: 1759
Joined: Sat Sep 11, 2021 5:04 am

Moving maximized window between displays by Win+Shift+Left/Right can't restore it to the original display in the session

Post by rakunavi »

Hello all,

There are two methods to move a window to another display. In the first method, the window is moved by dragging the title bar with the mouse (hereafter referred to as case A) and in the second method, the window is moved using only shortcut keys (hereafter referred to as case B).

If the "Snap Windows" feature is enabled in the Windows settings, you can use <Windows key + Shift + Left key> and <Windows key + Shift + Right key> to move application windows between multiple displays. If the "Open each new document in a new window" option is enabled in the PDF-XChange Editor's Preferences dialog, it works well with the use of moving individual windows to a different display while keeping the window maximized using only Windows shortcut keys.

  • snapwindows.png

    figure.png
At this time, I noticed that if I moved each of several maximized windows to a different display using only shortcut keys and saved the state as a session, each window was not restored to its original display. With the method in case A, each window would be restored and placed on the original display, but with the method in case B, somehow, all the windows would be placed on one and the same display.

Instead of moving a window first and maximizing it later by double-clicking on the title bar, etc., this problem can be reproduced by moving a window that has been maximized from the beginning with a shortcut key.

Please see the following verification procedure and video for details.

  • issue_image.png
  • CaptureVideo_SampleFiles_SessionFiles.zip

Verification procedure

Since this problem occurs in a multi-display environment, please try this with two or more displays set to extended display mode. In the video, a total of four displays are captured on one screen. The corresponding timecode in the video is also included. ([MM:SS] "MM" shows minutes, and "SS" shows seconds.)

  • screen.png

  • [00:00] Verify that the "Snap windows" feature is enabled in the Windows settings.

    [00:11] Start PDF-XChange Editor with default settings and open four sample files.

    [00:20] Drag each tab to its respective display and finally double-click the title bar to maximize it.

    [00:36] Save the session to a file. Name the file "case A".

    [00:45] Exit the PDF-XChange Editor, open the session from the file "case A.xcesession" and each window is successfully restored to its original display.

    [01:00] Open the Preferences dialog and enable the option "General > Manage Tabs and Windows > Open each new document in a new window".

    [01:15] Exit PDF-XChange Editor once and open the four sample files. The four files should open maximized on the same display. If all windows are not maximized, review the operation to ensure that they are maximized.

    [01:30] Move the four windows around using <Windows Key+Shift+Left> or <Windows Key+Shift+Right>. You should end up with one window on each of the four displays. Note that only the shortcut keys are used at this point. If the resolution of each monitor is the same, each window should be shown maximized on each display at this time without any other action. Note that if you use the mouse to move or fine-tune the placement of windows here, you will not be able to reproduce the problem.

    [01:45] Save the session to a file. Name the file "case B".

    [01:56] Exit PDF-XChange Editor, open a session from the file "case B.xcesession" and all windows are restored concentrated on a single display.

    [02:19] Exit PDF-XChange Editor, open a session from the file "case A.xcesession" and each window is successfully restored to its original display.

    [02:31] Exit PDF-XChange Editor, open a session from the file "case B.xcesession" and all windows are restored concentrated on a single display.

Final Thoughts

As these results show, a session file created using the method described in case A will successfully restore each window to its original display, regardless of whether the "Open each new document in a new window" option is enabled or disabled.

Thus, it is by no means necessary to enable the "Open each new document in a new window" option for the problem to occur. Even with the default disabled setting, the problem will still occur if you open another window and move the window by simply using Windows+Shift+Left/Right. The reason I emphasized enabling this setting in the procedure above is that I believe that with the option enabled, users will have more opportunities to move to another display with the window maximized using only the shortcut keys.

This is only my guess, but I suspect that moving a window using only the shortcut keys without moving it with the mouse would result in inaccurate coordinates for the window that are saved in the session file. Therefore, just in case, I have included the session file saved at each point in time in the sample file in case it might be of some help.

Hoping that the above information will be of some help to you.
Thank you so much for your continued support.

Best regards,
rakunavi

- PDF-XChange Editor PRO Version: 10.6.0 build 396
- OS Version: Windows 11 Pro / Home 24H2 Build 26100.4652
- PC Model: GMKtec Nucbox M7 Pro with HUION Kamvas Pro 19 / Lenovo IdeaPad C340-15IWL / HP All-in-One 22-c0xx
You do not have the required permissions to view the files attached to this post.
TOP desires for PDFXCE
forum.pdf-xchange.com/viewtopic.php?t=39665 LassoTool
forum.pdf-xchange.com/viewtopic.php?t=38554 CmtGarbled
forum.pdf-xchange.com/viewtopic.php?t=37353 FulScrMultiMon
forum.pdf-xchange.com/viewtopic.php?t=41002 DisableTouchSelect
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 11385
Joined: Wed Jan 03, 2018 6:52 pm

Re: Moving maximized window between displays by Win+Shift+Left/Right can't restore it to the original display in the ses

Post by Daniel - PDF-XChange »

Hello, rakunavi

Thank you for the report, I have reproduced this here and passed it up to the Dev team.

Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com