Title

Message

Confirm

Want to earn a free DisplayFusion Pro license? We're looking for DisplayFusion translators!
<< DiscussionsReply

Window focus unexpectedly changing to another app while typing...

Avatar from Gravatar.com
Uriah
19 discussion posts
This started a few weeks ago. I haven't found any way to reliably duplicate or predict the problem, but it's happening very frequently, and only when using Display Fusion.

Basically, I have a dual monitor setup, stacked vertically. A 38" curved ultrawide in 3840x1600 and a 32" widescreen in 2560x1440. The window focus keeps randomly changing to VSCode while I'm typing. I'll be right in the middle of typing a sentence and will look up and see I'm now typing in VSCode instead of the web browser, email client, Slack, etc. It's actually happened TWICE while I've been typing this message (that's how frequent it is). I'm at a total loss as to what's causing it, but it goes away completely when DisplayFusion is not running.
• Attachment [protected]: DisplayFusionDebugInfo.zip [24,451 bytes]
18 days ago  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Could you send me a full debug log for this?

  • On the DisplayFusion Settings > Troubleshooting tab, change the Logging drop-down to "L1: Log Minimal" and click Apply
  • The next time this occurs, note the time so we'll know where to check in the log file
  • Click the "Export Info to File" button on the Settings > Troubleshooting tab
  • Reply with the file attached
  • Disable debug logging after sending the log
17 days ago  • #2
Avatar from Gravatar.com
HL
1 discussion post
I figured out how to solve that issue so might as well post here to help dev narrow it down.

This problem started after the Windows 10 patch KB4522741 is installed. It is a .Net Framework patch for 3.5 and 4.8.

It is caused by the Multi-monitor Taskbars function. If you disable the feature it will stop happening.

That is the best workaround I have so far.
16 days ago  • #3
Avatar from Gravatar.com
Uriah
19 discussion posts
10:35:24 (ish) +/- a few seconds.
• Attachment [protected]: DisplayFusionDebugInfo.zip [58,500 bytes]
14 days ago  • #4
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Thanks! I can see in the log where that focus change happened, but there aren't any lines in the log to indicate that DisplayFusion caused it to switch focus (nothing regarding the taskbar or anything like that). I'm just seeing lines for things that happen after the focus changes.

If you disable the DisplayFusion taskbars, does that make any difference?
14 days ago  • #5
Avatar from Gravatar.com
Uriah
19 discussion posts
Hi Keith, I did some testing and if I disable Display Fusion's taskbar functionality and use the built in "Show taskbars on all displays" feature in Windows 10, the unexpected window focus changes go away. So it appears to be something with Display Fusion's multi-monitor taskbars. It's a pity because I like the way you do it over the way Windows 10 natively does it. But I'll have to settle for less for now.
12 days ago  • #6
Avatar from Gravatar.com
srslyUnique
7 discussion posts
Can confirm that this happens with the taskbar replacement.
Has been happening for around a week now.

Disabling the taskbar replacment fixes the problem.

The issue only occurs if my focus is on the 2nd screen - it never switches from the main screen to the 2nd screen.

If no window is open on the main screen it can even happen, that a background window is brought to the foreground on the 2nd screen.
12 days ago  • #7
Avatar from Gravatar.com
Uriah
19 discussion posts
Quote:
The issue only occurs if my focus is on the 2nd screen - it never switches from the main screen to the 2nd screen.

If no window is open on the main screen it can even happen, that a background window is brought to the foreground on the 2nd screen.


I totally forgot to include that detail in my original post! For me it's the exact opposite. My primary monitor (the top one - monitor #1) always loses focus, while my secondary monitor (the bottom one - monitor #2) is the monitor the focus is always switching to unexpectedly. BUT it's worth noting that I do have my "primary taskbar" moved to monitor #2 (my bottom monitor), so that may be why my "focus issue" is the exact opposite of yours...
12 days ago  • #8
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ok, thanks for the update, this is a stumper! Does it seem related to any specific apps that are open on either screen at the time? I'm not seeing anything like that happening here, but there must be something common between your two systems, I just need to figure out what it is!
12 days ago  • #9
Avatar from Gravatar.com
Uriah
19 discussion posts
I'll turn the DisplayFusion taskbar back on and will re-enabling logging tomorrow when I start work, so I can hopefully have some better log results over to you. Maybe that will help you get to the bottom of it.
11 days ago  • #10
Avatar from Gravatar.com
Uriah
19 discussion posts
Please assume +/- 5 seconds to each timestamp

10:52:24 - Typing in Slack on monitor #1, unexpectedly focused to Visual Studio Code on monitor #2.

12:14:34 - Typing in LibreOffice Writer on monitor #1, unexpectedly focused to Visual Studio Code on monitor #2.

12:17:01 - Typing in LibreOffice Writer on monitor #1, unexpectedly focused to Visual Studio Code on monitor #2.

12:21:50 - Typing in LibreOffice Writer on monitor #1, unexpectedly focused to Notepad++ on monitor #2.

12:24:14 - Typing in LibreOffice Writer on monitor #1, unexpectedly focused to Notepad++ on monitor #2.
• Attachment [protected]: DebugInfo.zip [315,253 bytes]
11 days ago  • #11
Avatar from Gravatar.com
srslyUnique
7 discussion posts
I can confirm the behaviour (only from #2 to #1 in my case), happened with the following apps:
Chromium, Opera, Sublime Text, Windows Explorer.

Also happened with: Chromium and Sublime both on screen #2, focus switched from Chromium to Sublime, so it actually brought Sublime in front of Chromium.

It never happened if the programs are minimized - only if they're in the background.
11 days ago  • #12
Keith Lammers (BFS)'s profile on WallpaperFusion.com
@srslyUnique: Could you attach a debug log as well?

  • On the DisplayFusion Settings > Troubleshooting tab, change the Logging drop-down to "L1: Log Minimal" and click Apply
  • Reproduce the issue and note the time so we'll know where to check in the log file
  • Click the "Export Info to File" button on the Settings > Troubleshooting tab
  • Reply with the file attached
  • Disable debug logging after sending the log
10 days ago  • #13
Avatar from Gravatar.com
srslyUnique
7 discussion posts
Attached.
Around 19:16:10 it switched from the opened Windows clock and brought the DisplayFusion settings window to the foreground, without any action on my side.
• Attachment [protected]: DisplayFusionDebugInfo.zip [39,668 bytes]
10 days ago  • #14
Keith Lammers (BFS)'s profile on WallpaperFusion.com
If you guys open a PowerShell prompt and enter
Get-Hotfix
, is KB4722741 listed there?
10 days ago  • #15
Avatar from Gravatar.com
srslyUnique
7 discussion posts
Can't find anything about the ID you listed, not even in Google?

Output is:

Code

10 days ago  • #16
Avatar from Gravatar.com
srslyUnique
7 discussion posts
Funny thing, after downloading and installing another update (KB4522355), KB4522741 appeared and is installing now.

/edit:
KB4522741 is listed in the update history - but not under Get-Hotfix.

/edit2:
Focus switch is still happening, so not the culprit/solution.
10 days ago (modified 10 days ago)  • #17
Avatar from Gravatar.com
Faviel
2 discussion posts
Hi, I have the same issue, so I'll post my findings as well (maybe it will help someone here).
1st I thought that this is a Firefox issue as most of the time focus was switching from one Firefox window on one monitor to another Firefox window on another monitor. But when it started to do it also with other applications then it looked more like a Windows 10 or DisplayFusion Pro issue.
After reading some comments here I started playing with some settings of DisplayFusion Pro and I've changed setting in the 'Taskbar' tab called 'Taskbar Mode' from “All taskbars show relevant windows” to “Windows taskbar shows all windows, DisplayFusion shows relevant windows” and it seems to prevent from windows focus switching (no matter on which monitor I have a window with a focus on it).
7 days ago  • #18
Keith Lammers (BFS)'s profile on WallpaperFusion.com
@Faviel: Could you attach a copy of your DisplayFusion troubleshooting info as well?

  • Open the Settings > Troubleshooting tab
  • Click the "Export Info to File" button
  • Reply with the file attached
5 days ago  • #19
Avatar from Gravatar.com
Faviel
2 discussion posts
Sure, here is the file.
• Attachment [protected]: DisplayFusionDebugInfo.zip [24,372 bytes]
5 days ago  • #20
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Thanks! The only thing I can see in common between your 3 machines is that you all have the Xbox Game Bar running. I've enabled that on my machine now so we'll see what happens
5 days ago  • #21
Avatar from Gravatar.com
srslyUnique
7 discussion posts
I'm not 100% sure, but with the latest Win10 update, it doesn't seem to happen anymore.
I've reactivated the taskbar and settings and could work the last 2 hours without noticing another focus switch...

I'm with a customer tomorrow, so can't really check, but will update on friday if it occurs again.
5 days ago (modified 5 days ago)  • #22
Avatar from Gravatar.com
Jef Waite
13 discussion posts
I too experience the issue. I do not have the Xbox Game bar running, BUT I do have the Xbox for PC beta installed. I just tried exiting the XBox for PC Beta to see if it continues to occur.

I have attached the Debug Info you were requesting from other users to hopefully determine if it's DisplayFusion or some Windows issue.

Thanks!
• Attachment [protected]: DisplayFusionDebugInfo.zip [26,901 bytes]
5 days ago  • #23
Avatar from Gravatar.com
srslyUnique
7 discussion posts
Happened again, so it wasn't fixed with the last Windows Update.

If I quit Xbox for PC manually, the issue did not occur during the last 15mins.
4 days ago (modified 4 days ago)  • #24
Avatar from Gravatar.com
Jef Waite
13 discussion posts
Just an update. Once I killed the XBox for PC Beta I have had no issues with weird focus problems.

I'll just make sure to keep that closed when I'm not actually using it.
3 days ago  • #25
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Thanks for the update guys, that's super helpful! We will do some more testing with the Xbox beta app here and see if we can get this sorted out.
3 days ago  • #26
Avatar from Gravatar.com
Uriah
19 discussion posts
I have Xbox PC game pass beta as well, so maybe that is the case. I'll let you know!
3 days ago  • #27
Avatar from Gravatar.com
Uriah
19 discussion posts
Hi Keith, I've re-enabled the DisplayFusion taskbar (instead of the Windows 10 one) and can confirm that the issue goes away completely if I do NOT have the Xbox Beta app running in the system tray. The moment I launch the Xbox Beta app and minimize it to the system tray, the issue resumes exactly as before. Below is a link to the exact app in case you aren't familiar with it (I think it requires you to be a Windows Insider to install since it's still in Beta).

https://www.microsoft.com/store/productId/9MV0B5HZVK9Z

The Xbox Beta app is built on Electron, but Electron is definetely NOT the culprit since both Slack and VSCode are built with Electron and neither of those apps are causing such issues. It's only Microsoft's Xbox Beta app. So it's definetely something bizarrely specific to that specific app... As an aside it's a beautiful looking app but all that beauty can't make up for the fact that it's a clusterphuck of usability issues at the moment; so it's not surprising to me that it's causing problems. Based on this information, I think it's fair to point out that this focus issue does NOT appear to be the fault of Display Fusion (at least directly), but hopefully you can find a hack around it. Cheers!
5 hours ago (modified 5 hours ago)  • #28
Was this helpful?  Login to Vote  Login to Vote
<< DiscussionsReply