XYPlorer stealing window focus

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
admin
Site Admin
Posts: 66541
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: XYPlorer stealing window focus

Post by admin »

Try v26.20.0200, I added something: Next time XY pops up to the front, type dlog; in its address bar and press ENTER. A debug log will come up and should tell us something interesting.

curious-koala-money
Posts: 6
Joined: 03 Jun 2022 19:04

Re: XYPlorer stealing window focus

Post by curious-koala-money »

Thanks for making the effort! I tried, but nothing show up in the log:
XYplorer 26.20.0200 - 30-Day Trial Version - Day 1 - Windows 11 Pro, 64-bit, Version 23H2, Build 22631.2861 (10.0) - 2024-07-12 12:44:06
==============================================================================================================================================
Also, i hooked into windows shell events to look for a clue, all i got was:
1. the application on second desktop exiting with window parameter 2 (HSHELL_WINDOWDESTROYED)
2. xyplorer activating on desktop 1 with window parameter 32772 (HSHELL_RUDEAPPACTIVATED|HSHELL_HIGHBIT)
3. root window of explorer (desktop) activating on desktop 1 with 32772 (HSHELL_RUDEAPPACTIVATED|HSHELL_HIGHBIT)

Honestly, don't waste too much time on this issue for my sake. I'd be happy to help of course, but if noone else has this problem maybe it's a waste of your time.

admin
Site Admin
Posts: 66541
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: XYPlorer stealing window focus

Post by admin »

Hm, the log is empty. That means:

1) No chance to fix it. Windows does it all by itself.

2) Since this is Windows 11, chances are that this is just a Windows bug. (Which means it will never be fixed.)

I agree the case can be closed here.

jupe
Posts: 3462
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: XYPlorer stealing window focus

Post by jupe »

Not sure if it is related but I have an issue where if I have 2+ instances of XY open (which I always do), regularly if the XY process is delayed (slow lan response etc) they end up swapping order on the taskbar, this is what I get in that situation:

Code: Select all

17:39.708  -  2024-07-14 11:19:41.198  --N  Foregrounded by ShOp2
    1.012  -  2024-07-14 11:19:42.210  --N  Foregrounded by ShOp2
When they swap order on the taskbar I have to close the second instance to return the first back to the first position, it can get irritating. It's happening frequently lately because I've plugged in an old slow NAS.

admin
Site Admin
Posts: 66541
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: XYPlorer stealing window focus

Post by admin »

What you see is the solution to the focus issue mentioned here: viewtopic.php?p=77516#p77516
I'd say it's a workaround for a shell bug. Now it may be that the bug is fixed in Win 10 and later (unlikely, of course), so I will experimentally remove the workaround for Win 10 and later. Let me know how it works.

jupe
Posts: 3462
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: XYPlorer stealing window focus

Post by jupe »

Been using .0206 for 2 days now, and my issue seems fixed. :biggrin:

It will be great not having that irritation anymore, and I haven't noticed any abnormal behavior in regards to XY being left in the background yet either. I'd be interested to know if this resolves the OPs issue too.

Enormous Thanks! :tup:

admin
Site Admin
Posts: 66541
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: XYPlorer stealing window focus

Post by admin »

Great! :D

Now I'm waiting for the complaints from the other side (the focus loss folks) :biggrin:.

Post Reply