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

[FancyZones] Editor multi monitor support #6562

Merged
merged 81 commits into from
Nov 17, 2020

Conversation

SeraphimaZykova
Copy link
Collaborator

@SeraphimaZykova SeraphimaZykova commented Sep 11, 2020

Summary of the Pull Request

Multi-monitor support.

PR Checklist

Info on Pull Request

Layout and layout settings could be selected for each monitor. Any change would be saved after clicking Apply. For now, the Apply button doesn't close the editor window.
On the active monitor selection, layout and settings are shown accordingly to the monitor (except switching Templates and Custom tabs)

image
image
image

Displays are presented with their relative dimensions.
1
2
3

Validation Steps Performed

Use the editor with different desktops configurations.
Verify:

  • settings were saved properly for each desktop.
  • zones are placed properly for each desktop
    • in the editor preview
    • while editing
    • after being applied
  • grid and canvas editors don't crash.
  • template settings (Zone count, Show space around zones, Space around zones) are saved individually for each desktop and those values are changed on the desktop switch in the editor.

@Aaron-Junker
Copy link
Collaborator

Awesome work. Thanks

@enricogior enricogior changed the title [FancyZones] Editor 2.0 [FancyZones] Editor multi monitor support Sep 11, 2020
@enricogior enricogior added the FancyZones-Editor Issue revolving the FancyZone Editor label Sep 11, 2020
@SeraphimaZykova SeraphimaZykova marked this pull request as draft September 11, 2020 12:14
@htcfreek
Copy link
Collaborator

htcfreek commented Sep 18, 2020

Great idea and work. 👍

Just two questions:

  • I am not sure if it is possible to span zones over multiple monitors at the moment. But if so, van the user also select both monitors at the same time?
  • How does it behave with Virtual Desktop?

@SeraphimaZykova
Copy link
Collaborator Author

  • I am not sure if it is possible to span zones over multiple monitors at the moment. But if so, van the user also select both monitors at the same time?
  • How does it behave with Virtual Desktop?

Thanks!
In the current implementation, it's not possible to select both monitors at the same time. Spanning zones overs monitors is possible if you use the Allow zones to span across monitors option.
Regarding VD, the temp file with layouts data using by the editor contains layouts only for active VD. This way you can open the editor on any VD and see corresponding data.

@enricogior
Copy link
Contributor

@htcfreek

I am not sure if it is possible to span zones over multiple monitors at the moment. But if so, van the user also select both monitors at the same time?

If Allow zones to span across monitors is on, only one monitor will be available and it will allow to create zones that span across monitors.
We will not implement a feature that will allow to select multiple monitors in the editor.

How does it behave with Virtual Desktop?

As @SeraphimaZ said, nothing changes compared to the current behavior. If you want to edit the layout for a VD, first switch to that VD and then open the FZ editor.

@@ -616,7 +615,7 @@ void FancyZones::ToggleEditor() noexcept
}
else
{
zoneWindow = m_workAreaHandler.GetWorkArea(m_currentDesktopId, monitor);
zoneWindow = m_workAreaHandler.GetWorkArea(m_currentDesktopId, targetMonitor);
}

if (!zoneWindow)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's rename zoneWindow to workArea

@crutkas
Copy link
Member

crutkas commented Oct 7, 2020

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@crutkas
Copy link
Member

crutkas commented Oct 9, 2020

can't wait to try this out :)

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants