Title

Message

Confirm

Focus Event Trigger not just top level

NetMage
266 discussion posts
I think I found a part of my display issues with Windows when running DF with triggers. The scripted functions I have that move windows to be inside monitor bounds (and not beneath the top taskbar) and also (now) handle moving windows to the mouse monitor without moving windows further away from the mouse are moving parts of windows.

The issue seems to be the Focus Event Trigger is called with the wrong window handle, e.g. not the top level window handle that gets focus, but rather a child window handle. For example, when File Explorer opens and displays the computer contents on the right pane, if I change focus to another window and back to File Explorer, I appear to get the right pane's window handle and not the top level File Explorer window handle.
Mar 4, 2016  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Good catch! We'll have this all fixed up for 8.0 Beta 5

Thanks!
Mar 8, 2016  • #2
NetMage
266 discussion posts
I added a sound alert to my triggers when it doesn't get a top level handle, and so far I haven't heard a peep!
Mar 21, 2016  • #3
NetMage
266 discussion posts
I just noticed the Create Window trigger doesn't seem to fire when I open an Outlook 2016 email message. I don't see anything unusual about the email window, it is a child of the desktop, but the trigger isn't firing?
Mar 22, 2016  • #4
NetMage
266 discussion posts
Never mind, I think I just figured out the issue was Windows was running out of GDI objects as DF was over 8,000.
Mar 22, 2016  • #5
NetMage
266 discussion posts
Seems like Outlook email windows not being triggered is happening at lower GDI levels occasionally - around 4,000.

Also, when I use Windows-L to lock, I normally get a trigger for the lockscreen image, but I saw it miss one today. I guess that could also be due to GDI handles?
Mar 23, 2016  • #6
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Outlook and Word sometimes don't work with the Window Created Trigger event, because they re-use old window handles from windows that were previously destroyed, so DisplayFusion doesn't recognize them as new windows

Regarding the Lock Screen trigger, it's possible that the handle/object leak could cause that, yes. I've responded in that thread as well

Thanks!
Mar 23, 2016  • #7
Keith Lammers (BFS)'s profile on WallpaperFusion.com
In 8.0 Beta 5, the Focus event should now get the correct top-level window
Mar 30, 2016  • #8
NetMage
266 discussion posts
I notice 8.0 beta 7 still doesn't consistently trigger on Outlook 2016 window creation as I am now using triggers again.

Perhaps DF could catch the window destroy message and remove window handles? Or, does Outlook not actually destroy the window, just hide it and then rebuild it?
Jun 15, 2016  • #9
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Yeah, unfortunately the problem is that Outlook isn't destroying the windows
Jun 15, 2016  • #10
Was this helpful?  (-)  (-)