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] Applications that don't activate/can't be dragged to a zones [issue tracker] #1466

Closed
enricogior opened this issue Mar 5, 2020 · 69 comments
Assignees
Labels
FancyZones-Dragging&UI FancyZone dragging / interaction issue Issue-Bug Something isn't working Product-FancyZones Refers to the FancyZones PowerToy Resolution-External External issue, unrelated to PowerToys Tracker Issue that is used to collect multiple sub-issues about a feature

Comments

@enricogior
Copy link
Contributor

enricogior commented Mar 5, 2020

Please see https://github.com/microsoft/PowerToys/wiki/Application-Compatibility

@enricogior enricogior added Issue-Bug Something isn't working FancyZones-Dragging&UI FancyZone dragging / interaction issue Priority-1 Bug that is high priority labels Mar 5, 2020
@enricogior enricogior changed the title Application that don't activate zones [issue tracker] Applications that don't activate zones [issue tracker] Mar 5, 2020
@enricogior enricogior changed the title Applications that don't activate zones [issue tracker] Applications that don't activate/can't be dragged to a zones [issue tracker] Mar 6, 2020
@ivenhov
Copy link

ivenhov commented Mar 6, 2020

Hyper-V Manager
Notepad++

@enricogior
Copy link
Contributor Author

@ivenhov
thanks for reporting the apps. Regarding Notepad++, I used it daily and I never had any problem with it. In your case the problem happens with SHIFT-drag or even if the SHIFT requirement is turned off?

@ivenhov
Copy link

ivenhov commented Mar 6, 2020

Hi
I have SHIFT option enabled and there is no snapping.
With SHIFT option off snap area appears, it becomes blue when dragging Notepad++ into it, but dropping the window does not snap it

I'm on Notepad++ 7.8.4 in case it matters.
Windows Version 10.0.18363 Build 18363

@enricogior
Copy link
Contributor Author

Not sure it makes any difference, but just to verify:

  • did you installed it or are you using the portable version?
  • 32-bit or 64-bit version?

It's indicated in the "About Notepad++" dialog

image

@ivenhov
Copy link

ivenhov commented Mar 6, 2020

It is a 64-bit version, installed (not portable) but I think it was installed with chocolatey.

@patrick-reyes
Copy link

patrick-reyes commented Mar 7, 2020

After installing v0.15.1 I encountered the same issue with Visual Studio not snapping to a zone.
In general settings I changed the "Always run as administrator" to On and that fixed the issue for me.
I then tried turning the option back off to see what the behaviour would be and surprisingly the zone snapping still worked.

Are there some settings that require admin privileges to be set which could be missed on install?

Windows 10 Pro 1909
PowerToysSetup-0.15.1-x64.msi

@crutkas
Copy link
Member

crutkas commented Mar 7, 2020

@PatReyesAU are you running VS as administrator?

@patrick-reyes
Copy link

patrick-reyes commented Mar 7, 2020

@crutkas Yes I am

@crutkas
Copy link
Member

crutkas commented Mar 7, 2020

That is why. An non elevated process can not resize / move an elevated process. We have a work item to detect this scenario and prompt you

@crutkas
Copy link
Member

crutkas commented Mar 7, 2020

#1015 is the tracking issue for that

@patrick-reyes
Copy link

@crutkas Ah that makes sense. Thank you for the info!

@enricogior
Copy link
Contributor Author

@PatReyesAU

I then tried turning the option back off to see what the behaviour would be and surprisingly the zone snapping still worked.

The option will have effect after you restart PowerToys, if you didn't restart it that explains why you were still able to drag the VS window.

@ivenhov
Copy link

ivenhov commented Mar 8, 2020

Hi
Thanks for pointing that out. It turned out @PatReyesAU and @crutkas
In my case Notepad++ was running in Administrator mode as I was editing hosts file at some point.
With Notepadd++ it is very easy to go into Administrator's mode so It was left as that for some time.
I've checked and re-launching it in normal mode fixes the problem
I'm assuming Hyper-V Manager will be the same, although I'm not launching it as Administrator
I did not know elevated mode may matter. Since there is #1015 I would consider my problem as a duplicate.

@crutkas crutkas added this to the Build 2020 milestone Mar 8, 2020
@The-Randalorian
Copy link

IDLE (Python IDE) also appears to be affected. This is in python version 3.8.0, 64-bit.

Other tkinter based applications seem to be affected similarly. (Perhaps this extends to tcl/tk based GUIs in other languages?)

Other python GUI systems may not be affected. I personally tested pygame(sdl2) with no issues.

@MichaelPeter
Copy link

MichaelPeter commented Mar 15, 2020

I found another issue not shure if I should open a seperate Issue.

I just updated power toys using the MSIX Installier to 15.2.

If I start Visual Studio 2019 Preview normally I can drag the window.
If I start Visual Studio 2019 Preview with Admin rights I cannot drag the Visual Studio window.

I need to start it with AdminRights otherwise I cannot build my Xamarin UWP App.

@crutkas
Copy link
Member

crutkas commented Mar 15, 2020

A non admin process cannot do many things to admin processes. When PowerToys isn’t run as admin and you are running something else as, we cannot move / resize it. Issue #1015 is designed to notify users when we see this scenario and let you decide what to do.

@ChrisRichner
Copy link

ChrisRichner commented Mar 17, 2020

Tested with PowerToys v0.15.2 and Visual Studio Version 16.6.0 Preview 1.0 running with non-admin rights on a Windows 1909 Build (18363.720).

The Tool Window Test Explorer does not activate the drop zones.

@crutkas
Copy link
Member

crutkas commented Mar 17, 2020

Tested with PowerToys v0.15.2 and Visual Studio Version 16.6.0 Preview 1.0 running with non-admin rights on a Windows 1909 Build (18363.720).

The Tool Window Test Explorer does not activate the drop zones.

@enricogior tool windows do activate aero snaps.

@enricogior
Copy link
Contributor Author

@crutkas supporting tool windows is very tricky, the current code tries to figure out if a window can be snapped based on certain properties and the VS tool windows are currently not supported.

@ChrisRichner
Copy link

I see, maybe it helps to know that this used to work in a previous version of Powertoys and Visual Studio.

@enricogior
Copy link
Contributor Author

@ChrisRichner
there has been several changes since the first release, in some cases adding support for some windows/dialogs caused regressions for other applications.
The work is still in progress, so we may be able the support VS tool windows at some point.
There is also the problem that some tool windows should not be resized, while in other cases the desired behavior is to resize them, that distinction is not yet implemented.

@verglor
Copy link

verglor commented Mar 18, 2020

supporting tool windows is very tricky, the current code tries to figure out if a window can be snapped based on certain properties

Is it possible to add such option that any window regardless of it's properties will be snappable with shift key ?

@crutkas
Copy link
Member

crutkas commented Aug 13, 2020

@allansramblings where is the tracking issue for that? I'm playing with that window and it looks like you can't resize it anyways. If a window expressly says "no thank you" to resizing or has limits, we respect those restrictions.

@allansramblings
Copy link

@allansramblings where is the tracking issue for that? I'm playing with that window and it looks like you can't resize it anyways. If a window expressly says "no thank you" to resizing or has limits, we respect those restrictions.

I mentioned it in this previous issues thread: #209 (comment) where it was added to release milestones. I wasn't looking to resize the window, but place it in a fixed, predetermined location that's much easier to do through the use of FancyZones.

@plhatcher
Copy link

Autodesk Revit (2019 or 2020) does not appear that child windows honor fancyzones.

@zoeesilcock
Copy link

Unity (2018 and 2019 tested, but likely all versions), only the main window can be assigned to zones. Tabs in Unity can be detached into their own windows, those windows cannot be assigned to a zone. It would be super helpful if all those sub-windows could be assigned to zones also as it would allow making a layout using FancyZones and thereby circumventing the limitations of Unity's own layout system.

@PatrickdeBie
Copy link

Spotify seems to snap only to zones on my primary monitor. On my secondary monitor it doesn't snap.
Also when I use the windows key + arrow keys (I've got override Windows Snap Shortcut enabled) Spotify immediately jumps back to my primary monitor.

@enricogior
Copy link
Contributor Author

@PatrickdeBie
that is a different problem, specific to Spotify, please one a new issue with detailed description, thanks.

@PatrickdeBie
Copy link

Will do when I got a spare moment. Thanks for the reply!

@angrynerd
Copy link

I am personally having issues trying to snap task manager and aimp music player.

@pressRtowin
Copy link

@enricogior do you know if this issue also applies in any way to windows created via Unity mode in VMware? I have some window resizing/positioning scripts set up in DisplayFusion (on the host system) that seem to be able to control these virtualized app windows just fine, but FancyZones has no effect on them. If not relevant to this issue, is this something that FZ would ever be able to address? I'll create a new issue if so.

@enricogior
Copy link
Contributor Author

@pressRtowin
I haven't tested it, but I wouldn't be surprised if it doesn't work since VNWare workstation is also not working with FZ.

@mandusm
Copy link

mandusm commented Jan 19, 2021

Hyper-V - Enhanced Session Window
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FancyZones-Dragging&UI FancyZone dragging / interaction issue Issue-Bug Something isn't working Product-FancyZones Refers to the FancyZones PowerToy Resolution-External External issue, unrelated to PowerToys Tracker Issue that is used to collect multiple sub-issues about a feature
Projects
None yet
Development

No branches or pull requests