Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fancy Zones new editor needs to support multiple monitors #195

Closed
enricogior opened this issue Sep 5, 2019 · 24 comments · Fixed by #391
Closed

Fancy Zones new editor needs to support multiple monitors #195

enricogior opened this issue Sep 5, 2019 · 24 comments · Fixed by #391
Assignees
Labels
FancyZones-Editor Issue revolving the FancyZone Editor Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release.

Comments

@enricogior
Copy link
Contributor

Summary of the new feature/enhancement

Currently the new FZ editor only comes up and applies zone layouts to the primary monitor. In order to get a layout on a different monitor, the original custom editor is needed. Bret and Jeff have a design for this change and now they need to implement it.

Proposed technical implementation details (optional)

Note that when this is done the original editor should be removed as well as the setting to toggle between editors.

@enricogior enricogior added the FancyZones-Editor Issue revolving the FancyZone Editor label Sep 5, 2019
@corbob
Copy link
Contributor

corbob commented Sep 5, 2019

I'll leave this note for anyone like me that was confused.

  • First you turn off this setting: Use new zone editing experience (Preview)
  • Then you ignore this button and read the text above it:
    Zone configuration heading with Edit Zones button
  • Follow the text instructions and press Win + ~
  • ???
  • Profit!

@0xabu
Copy link

0xabu commented Sep 5, 2019

In addition to the comment above, clues for the ??? step are to be found in ZoneWindow.cpp. You need to press 'e' before you can do much else.

@TheMrJukes
Copy link
Contributor

Yeah, we didn't really document usage of the old editor since we will be cutting it once the new editor completely supports multimon. The old implementation is a bit tedious.
Also, the "Edit zones" button only invoking the new editor is a bug. It should invoke whichever editor you have chosen to use.

@WeirdScienceX
Copy link

On a non US keyboard, I cannot launch configuration with the WIN + ~ shortcut

@rabenimmermehr
Copy link

rabenimmermehr commented Sep 6, 2019

On a non US keyboard, I cannot launch configuration with the WIN + ~ shortcut

@WeirdScience06 See this issue: #203
In the comments they're discussing different keys for different keyboard-layouts

@dzsquared
Copy link

Another work around is to change your "main monitor" setting, set the fancy zones in the new editor, change the main monitor again, set the fancy zones for that monitor, etc. Fancy zones retains the zones for each monitor throughout the process.

@oyvindneu
Copy link

Turn off "Use new zone editing experience"

DO NOT PRESS blue button "Edit zones"

Press Win - ~ ( OR Win - ö / Win - ø / Win - @ ) see comments in issue #203
Press e (now you can edit)
Press c (to create new zones)
Press d (to delete zones)
Press r (for reset)

@AlanMcBee
Copy link

AlanMcBee commented Sep 6, 2019

I tried #195 (comment) and it halfway worked. I was able to bring up the old editor, but it still created all the zones only on the primary monitor, even though it showed the possible grids to select on the floater toolbar on both monitors. When I selected the three column layout on my secondary monitor, it seems to apply the layout to my primary monitor.

tl;dr: that workaround is not reliable

@Michae1DX
Copy link

Another work around is to change your "main monitor" setting, set the fancy zones in the new editor, change the main monitor again, set the fancy zones for that monitor, etc. Fancy zones retains the zones for each monitor throughout the process.

This seems to be working well. I have 3 monitors and used this method to set up zones for each. Very happy with the results.

@movedoa
Copy link

movedoa commented Sep 6, 2019

Apart from different layouts for multimonitor it would be very nice to have different layouts per virtual desktop too. I have my communication apps an the first desktop and my working tools on the second. They require different layouts.

Is this something that is planned?

@stevemk14ebr
Copy link

stevemk14ebr commented Sep 6, 2019

I believe the cause of this is the line

Rect workArea = System.Windows.SystemParameters.WorkArea;

MSDN says:

Gets the size of the work area on the primary display monitor.

So someone go fix that to get the work area of other monitors. Makes sense why the workaround works with this.

@TheMrJukes
Copy link
Contributor

@stevemk14ebr that is one of the places yes. I put a few "TODO: multimon" tags around that need to be figured out to get better multimon support. I'm going to be working on this over the weekend.

@smoli
Copy link

smoli commented Sep 9, 2019

The workaround I'm using right now as the old editor did not work for me:

  • Open Display Settings
  • Set monitor to primary display
  • Create a layout using the new editor for that monitor

Repeat for each monitor. FancyZones stores the layouts per monitor (most likely per screen coordinates) and they stay on their respective monitor even after it is not the primary anymore. Only drawback is that the layouts reserve the space for the taskbar although it may not be visible for "non-primaray" monitors.

@ziplock9000
Copy link

+1 This is extremely important as many people using PT will have multiple monitors

@pbronez
Copy link

pbronez commented Sep 9, 2019

Workaround above worked for me. However, when I enable "Override Windows Snap hotkeys," these hotkey only cycle the windows through zones on their current monitor. The windows should cycle through all zones regardless of monitor.

@TheMrJukes
Copy link
Contributor

However, when I enable "Override Windows Snap hotkeys," these hotkey only cycle the windows through zones on their current monitor. The windows should cycle through all zones regardless of monitor.

I agree it should. As a workaround for that, you can use Win+Shift+Arrow to move the window to your desired monitor and then Win+Arrow like normal to cycle through the zones.

@fabricebauer
Copy link

Could you please also add the capability to define zones across several monitors? For instance I would like to define one single zone spanning two monitors (this is my current setup with ultramon for instance).
Thanks very much

@enricogior enricogior pinned this issue Sep 13, 2019
TheMrJukes added a commit that referenced this issue Sep 18, 2019
Fix for #195 - Fancy Zones new editor needs to support multiple monitors
Fix for #292 - Zone Editor opens behind PowerToys Window
@enricogior
Copy link
Contributor Author

Hi @fabricebauer
you should open a new issue with your suggestion since this issues is now closed.
Thank you.

@janis-veinbergs
Copy link

Another work around is to change your "main monitor" setting, set the fancy zones in the new editor, change the main monitor again, set the fancy zones for that monitor, etc. Fancy zones retains the zones for each monitor throughout the process.

I don't see where can I set my main display. But I can do it like this with new zone zone editing experience:

  1. Move PowerToys settings on whichever monitor I want to edit zones on
  2. Just edit zones/apply them, whatever. The other monitor won't loose it's configuration.

@r2evans
Copy link

r2evans commented Jan 18, 2020

Late follow-up: for me (currently using 0.14.1), I found that I can set zones on my non-primary monitor if I am currently focused on a window on that desktop before hitting Win-~. While this is not intuitive or documented (afaict), it works completely without needing to change "main monitor" or losing space on the bottom of the monitor for the taskbar (if not on all monitors).

@CSchellenberg
Copy link

I created a blog describing the usage of FancyZones in a multi monitor environment. Check it out here: https://www.sikich.com/insight/the-return-of-power-toys-with-windows-10-fancyzones/

@gitkrasty
Copy link

Late follow-up: for me (currently using 0.14.1), I found that I can set ...
I can confirm that it opens up editor on the other monitor. But the add new zone is a mess as zones from primary monitor are copied here. Absolutely useless for a setup with two very distinct monitors.

@enricogior enricogior added the Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release. label Apr 27, 2020
@Mercerudy
Copy link

I'm unfortunately still unable to create different zones on each of my two monitors. For the past year, I've been hitting Win-~ to open the editor and switch layouts every time I want to place a window, and the layout is then applied to both monitors:

Clipboard01

It doesn't matter if my cursor is on 1 or 2 when I hit Win-~, and launching the editor from the PowerToys Settings window from each monitor makes no difference:

Version and settings:
Clipboard02
Clipboard03

Glad to see it's fixed for others, but I'm hoping it can get fixed in my case, too.

@enricogior
Copy link
Contributor Author

@Mercerudy
you are experiencing this bug #1777
Let's move the discussion there I'll ask you to upload a config file to confirm it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FancyZones-Editor Issue revolving the FancyZone Editor Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release.
Projects
None yet
Development

Successfully merging a pull request may close this issue.