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

FancyZone editor setting button can't actually launch settings due to z-index #19828

Closed
1 task
crutkas opened this issue Aug 8, 2022 · 7 comments
Closed
1 task
Assignees
Labels
Cost-Small Small work item - 0-8 hours of work FancyZones-Editor Issue revolving the FancyZone Editor Issue-Bug Something isn't working Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release.

Comments

@crutkas
Copy link
Member

crutkas commented Aug 8, 2022

Microsoft PowerToys version

0.61.1

Running as admin

  • Yes

Area(s) with issue?

FancyZones Editor

Steps to reproduce

In the editor, click the settings button. Settings will launch UNDER the editor versus on top.

Fix is to remove setting button as there are multiple ways to get to settings.

@marypcbuk was the wonderful community member that flagged me.

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

Other Software

No response

@crutkas crutkas added Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams FancyZones-Editor Issue revolving the FancyZone Editor Cost-Small Small work item - 0-8 hours of work and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Aug 8, 2022
@crutkas crutkas self-assigned this Aug 8, 2022
@crutkas crutkas added the Status-In progress This issue or work-item is under development label Aug 8, 2022
@crutkas crutkas added this to To do in 0.62 Release via automation Aug 8, 2022
@davidegiacometti
Copy link
Collaborator

This is hitting only Windows 11.
Working as expected on Windows 10 21H2.

@Jay-o-Way
Copy link
Collaborator

Working as expected on Windows 10 21H2.

Same here on Win.10, with the side note that "as expected" only is true when the Settings windows is not visible. If it is already open (including minimized) then nothing happens at all.

@davidegiacometti
Copy link
Collaborator

FZ

@Jay-o-Way
Copy link
Collaborator

we'd have to make the Settings window AoT to solve the edge cases. If we didn't do this solution, a user could click the editor overlay and then still lose settings.

@crutkas I believe there are plenty of other options, like explicitly set SW flags (like SW_SHOWNORMAL or SW_RESTORE) in code

@Jay-o-Way
Copy link
Collaborator

we'd have to make the Settings window AoT to solve the edge cases

If the Settings window receives $WS_EX_TOPMOST after it's been called from the Color Picker Editor window (which also has topmost state) that's going to be another "conflict", making this whole situation more and more complicated. Please lean back and let's think of a logical solution.

@marypcbuk
Copy link

Working as expected on Windows 10 21H2.

Same here on Win.10, with the side note that "as expected" only is true when the Settings windows is not visible. If it is already open (including minimized) then nothing happens at all.

Yes, this is the bug I originally reported and it happens on multiple Windows 10 versions on Arm and Intel systems leaving me with the impression that the Settings cog was broken or had no functionality (I'll document which Win 10 builds I've seen this on if helpful but I would not say this is working as expected on Windows 10 unless you expect it to be confusing!)

@Jay-o-Way
Copy link
Collaborator

Jay-o-Way commented Aug 9, 2022

@crutkas So, is this an issue with Z-indices? I don't think so. It's about the window state flags and setting focus to the window when it is shown. In other words: "why is the following code not working as expected?"

if (lStyles & WS_MAXIMIZE)
{
ShowWindow(hwnd, SW_MAXIMIZE);
}
else
{
ShowWindow(hwnd, SW_RESTORE);
}
SetForegroundWindow(hwnd);
return FALSE;

Maybe we should use BringWindowToTop or SwitchToThisWindow in stead of SetForegroundWindow ?

CC: @SeraphimaZykova

@crutkas crutkas moved this from To do to In progress in 0.62 Release Aug 11, 2022
@Jay-o-Way Jay-o-Way added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Aug 11, 2022
@crutkas crutkas added Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release. and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Aug 11, 2022
@crutkas crutkas moved this from In progress to Done in 0.62 Release Aug 11, 2022
@crutkas crutkas removed the Status-In progress This issue or work-item is under development label Aug 11, 2022
@crutkas crutkas closed this as completed Oct 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cost-Small Small work item - 0-8 hours of work FancyZones-Editor Issue revolving the FancyZone Editor Issue-Bug Something isn't working Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release.
Projects
No open projects
Development

No branches or pull requests

4 participants