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

Virtualbox not handled by FancyZones #32908

Open
knirch opened this issue May 19, 2024 · 1 comment
Open

Virtualbox not handled by FancyZones #32908

knirch opened this issue May 19, 2024 · 1 comment
Labels
Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams

Comments

@knirch
Copy link

knirch commented May 19, 2024

Microsoft PowerToys version

0.80.1

Installation method

WinGet

Running as admin

Yes

Area(s) with issue?

FancyZones

Steps to reproduce

Similar experience as with #30148

After updating from 0.74.1, guest windows created by VirtualBox does not allow me to activate zones while dragging it.

From what I can tell (via WinSpy++), the window has WS_OVERLAPPEDWINDOW, WS_POPUP, WS_VISIBLE, WS_CLIPSIBLINGS, WS_CLIPCHILDREN, WS_EX_WINDOWEDGE

and if I read things correctly,

bool isPopup = FancyZonesWindowUtils::HasStyle(style, WS_POPUP);
bool hasThickFrame = FancyZonesWindowUtils::HasStyle(style, WS_THICKFRAME);
bool hasCaption = FancyZonesWindowUtils::HasStyle(style, WS_CAPTION);
bool hasMinimizeMaximizeButtons = FancyZonesWindowUtils::HasStyle(style, WS_MINIMIZEBOX) || FancyZonesWindowUtils::HasStyle(style, WS_MAXIMIZEBOX);
if (isPopup && !(hasThickFrame && (hasCaption || hasMinimizeMaximizeButtons)))
{
// popup windows we want to snap: e.g. Calculator, Telegram
// popup windows we don't want to snap: start menu, notification popup, tray window, etc.
// WS_CAPTION, WS_MINIMIZEBOX, WS_MAXIMIZEBOX are used for filtering out menus,
// e.g., in Edge "Running as admin" menu when creating a new PowerToys issue.
return ProcessabilityType::NonProcessablePopupWindow;
}

explicitly prohibits it.

While personally it's not a huge deal, as the zone(s) I'd like it to snap into roughly matches windows snap to edge. It would be nice with either some more control inside fancyzones, like "Included apps"/"Exclude from default exclusion" for either broken, or hacky software (if that applies for virtualbox). A "I (pretend) to know what I'm doing, let me manage this window" checkbox or such :)

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

Other Software

No response

@knirch knirch added Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels May 19, 2024
Copy link

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams
Projects
None yet
Development

No branches or pull requests

1 participant