microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
111.02k stars 6.54k forks source link

[FZ] Full-screen applications are minimized when opened #8976

Closed howiejc closed 3 years ago

howiejc commented 3 years ago

ℹ Computer information

📝 Provide detailed reproduction steps (if any)

  1. Use 1680x1050 full screen resolution on 1080p monitor for Apex Legends (not required but issue occurs more frequently vs native res such as 1080 res on 1080p monitor).
  2. Alt+tab from Apex Legends to desktop/another app, and then attempt to alt+tab back to game.
  3. Disabling FancyZones eliminates the issue.

✔️ Expected result

Able to switch back to the game (e.g. alt+tab) & keep it focused.

❌ Actual result

Attempting to alt+tab from desktop to the game results in the game immediately minimizing from full screen, thus switching back to the desktop. Sometimes the result is an infinite loop of minimizing and maximizing of the game (or graphics corruption within game in windowed mode when it should be in full screen mode).

📷 Screenshots

Game window preview from taskbar is black with a small white outline rectangle in the bottom left instead of showing game render.

enricogior commented 3 years ago

@howiejc the repro steps are not very clear. Switching from full screen to windowed mode should not involve FZ at all, unless you have first snapped the game window to a zone.

howiejc commented 3 years ago

@howiejc the repro steps are not very clear. Switching from full screen to windowed mode should not involve FZ at all, unless you have first snapped the game window to a zone.

Not sure how to be any clearer. When trying to alt+tab back to the game, I get sent right back to desktop and the game minimizes.

Disabling/Enabling FZ prevents/produces the issue 100%. This does not occur with v.29.0.

StewBC commented 3 years ago

With #8994 (closed as dup of this bug), just having the setting open makes Overwatch launch fullscreen without issue. You don't even have to disable fancy zones, just double-click the icon in the tray and with the settings open, Overwatch will stay open (I don't play Apex Legends so I am reporting this here).

enricogior commented 3 years ago

@howiejc can you please post a screenshot of your FancyZones settings? The game was previously snapped to a zone or did it start full screen?

ghost commented 3 years ago

This happened to me as well after the latest update to v0.29.3, no issues before that. It only happens in games which start in fullscreen, windowed mode is not affected.

The game is not snapped to a zone in my case, I even tried to remove all zones and just have one zone for the entire screen but this did not change anything.

Now I don't know anything about C++ but the part that was changed recently was that the window handler was initialized as a nullpointer, is it possible that this could affect the window handler for other applications? I don't know, just throwing theories out there.

To me assigning an operation to a nullpointer sounds weird coming from other programming languages but I might misunderstand something about C++.

image

derekslenk commented 3 years ago

I have this happen to me with Overwatch and Starwars Battlefront 2. Sometimes Battlefield V. If you need me to run any diagnostics or collect data I can. I just narrowed it down to fancyzones today (I knew it was something in powertoys causing issues)

hamiltonia commented 3 years ago

I'm also able to repro this with Overwatch. Exiting the PowerToys app removes the problem. Please let me know if I can provide any information to help reproduce or debug this issue.

-Open Overwatch from Battle.net app -Once Overwatch is full screen alt+tab to the desktop or any other app -Attempt to re-enter Overwatch app, either Alt+Tab to the app, or select it in the task bar.

Expected: Overwatch gains focus and is full screen Actual: Overwatch momentarily gains focus, and then is minimized again.

JosselOzoryu commented 3 years ago

Hi everyone ~

I'm also having problems with PowerToys' FancyZones. I knew I updated it after a long time not doing so but I didn't think it was because of that, I was really thinking about something with Win10 or the Nvidia drivers. If I turn it off everything works again.

My test setup for this:

Two Monitors - Main is 1440p@144hz, Second is 1080p@75hz. Power Toys v0.33.1 Windows 10 Pro build 18363.1379

Problem

Similar to @derekslenk, I'm able to replicate this every time with StarWars Battlefront II; this also happens to me with Hunt Showdown. Here is what happens from my side:

Fixes

Additional details

Notes: All the games I have that triggered the problem were from major companies using Cryengine and Frostbite. Unreal did not triggered this on my side.

crutkas commented 3 years ago

This has been resolved in the 0.35 release. https://github.com/microsoft/PowerToys/releases/latest