Explorer.exe randomly taking focus - Windows 11

Anonymous
2023-02-08T00:52:23+00:00

Firstly, I've been using my same PC for 3 years (minus a few upgrades, graphics card etc) on windows 10 and never ever had this issue.

Recently I had the pop up saying I'm eligible to upgrade to Windows 11 - Cool, why not.

So I've been using windows 11 for a couple of weeks now and I'm enjoying it... apart from one VERY annoying issue I'm having.

When playing a fullscreen application (or borderless window, it doesnt matter) It will randomly minimize itself to start bar, the same kind of action If I were to Alt-Tab out of it.

This isn't an issue with any one program, it can happen in any game I'm playing, or even just fullscreen applications I leave running, such as Heaven benchmark or other benchmarking programs.

Its not an accidental press of windows key or anything daft like that, It even happens when gaming with a PS5 controller, hands nowhere near the desk.

This can happen within a minute or 2 of playing a game, or sometimes go as long as 20 minutes without happening, but it WILL happen and will repeat itself periodically.

I figured somehow another window is taking focus out of my game and tabbing to it, but no other window or notification etc actually pops up, I'm just left staring at my desktop.

I managed to find a program online someone created which logs which windows are in focus in order, so using this program I was able to determine that when im gaming and this happens, the window taking focus is 'Explorer.exe'. which is suspiciously the same thing that is in focus if I just click on my background on my desktop from another program. Its essentially like my PC is just tabbing itself to desktop for no reason.

As mentioned above, ive not had this issue ever in 3 years with windows 10 and its only started happening when upgrading to windows 11 so clearly something new or different is causing this.

Things ive already tried... Disabling notifications, Turning on/off 'Game Mode'. Changing power plans. Disabling 'minimize when a second monitor is plugged in or removed.

None of these have solved this. At this point im thinking of just reverting back to windows 10 for now.

Windows for home | Windows 11 | Performance and system failures

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

124 answers

Sort by: Newest
  1. Anonymous
    2023-11-22T20:50:39+00:00

    Did you miss the 100s of reports of explorer stealing focus from other apps? This is an explorer.exe problem, not a VLC problem... please help to fix the actual problem.

    Was this answer helpful?

    4 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2023-11-22T15:40:34+00:00

    when playing vlc the window switches to explorer

    Without deeper analysis, the only recommendation I have is to make sure you're using VLC UWP, which is the edition that is compliant with Microsoft Store policies (aside from its Windows 8 package, which targets an out-of-support operating system and would not have been accepted for publication today, breaching policy 10.1.4). This will help with accountability in diagnosing application behavior.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2023-11-16T17:33:41+00:00

    same problem. when playing vlc the window switches to explorer

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2023-11-13T21:44:32+00:00

    One potential source of Windows 11 File Explorer focus stealing is Bonjour (published by Apple Inc.), which installs a Windows service with the service name and display name "Bonjour Service" that is set to automatically run at device startup. I stopped this service and changed its Startup Type from Automatic to Manual to prevent it from running by default, but it's possible that this effectively prevents it from fulfilling its purpose (which is an acceptable tradeoff for me), and I recognize that this is only reacting to the symptoms and doesn't identify the root cause. I had Bonjour version 3.0.0.10 installed (bundled with FileMaker Pro 16 which is published by FileMaker, Inc.).

    I determined this cause in an indirect way without having to install additional software or provision an unbounded amount of logging storage space by following the steps in "Test your Windows app for Windows 10 in S mode" to apply its audit mode policy to the system (thankfully there wasn't an existing SIPolicy.p7b). After restarting the system, I opened Event Viewer to the mentioned "Application and Services Logs\Microsoft\Windows\CodeIntegrity\Operational" log and kept it open while waiting for the focus stealing to happen. Once it triggered, I refreshed the event log to see what uncertified software recently tried to run --- this event log is set to only retain the most recent 1 MB of events (which amounted to about 1,300 events for me), so if you need more time to study the log, be sure to export a copy. (Modern Windows apps that are actually compliant with Microsoft Store policies should not be able to steal focus. Although the certification process is looser than that ideal scenario, S mode is a good starting point towards approaching the stricter Windows Phone and Xbox console computing experiences.)

    In my case, Bonjour doesn't seem to be the only source of focus stealing (but I estimate it is responsible for about 90% of them) --- something in my organization's Group Policy refresh also seems to trigger focus stealing. I haven't investigated this area yet, but I determined this by studying recently-run scheduled tasks in the "Application and Services Logs\Microsoft\Windows\TaskScheduler\Operational" log.

    To conveniently open Event Viewer to the specified logs in subsequent logon sessions, you can run the following commands (check the opened window afterwards; there seem to be scenarios where the requested log will not actually be opened):

    • "mmc.exe" "eventvwr.msc" /c:"Microsoft-Windows-CodeIntegrity/Operational"
    • "mmc.exe" "eventvwr.msc" /c:"Microsoft-Windows-TaskScheduler/Operational"

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  5. Anonymous
    2023-11-12T18:11:36+00:00

    I have the same issue. Currently running Windows 11 version 23H2 (OS Build 22631.2506) this issue is not only on this build but every build since the release of Windows 11. It happens "randomly" throughout the day (on average 5-7 times during an 8 hour period)

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments