<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>DisplayFusion RSS: Very simple function hanging in the Notification Tray</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=019c6daf-8d03-7755-8ddc-12344d28f1a2" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=019c6daf-8d03-7755-8ddc-12344d28f1a2</link>
<description>DisplayFusion RSS: Very simple function hanging in the Notification Tray</description>
<lastBuildDate>Sat, 11 Apr 2026 13:26:20 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=019c6daf-8d03-7755-8ddc-12344d28f1a2</generator>
<item>
<title>RE: Very simple function hanging in the Notification Tray</title>
<link>https://www.displayfusion.com/Discussions/View/very-simple-function-hanging-in-the-notification-tray/?ID=019c6daf-8d03-7755-8ddc-12344d28f1a2#6</link>
<pubDate>Fri, 20 Feb 2026 18:20:27 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/very-simple-function-hanging-in-the-notification-tray/?ID=019c6daf-8d03-7755-8ddc-12344d28f1a2#6</guid>
<category>DisplayFusion</category>
<description><![CDATA[We'll add that to our feature request list and let you know if it's something we add in the future.
Thanks!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
We'll add that to our feature request list and let you know if it's something we add in the future.<br/>
<br/>
Thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Very simple function hanging in the Notification Tray</title>
<link>https://www.displayfusion.com/Discussions/View/very-simple-function-hanging-in-the-notification-tray/?ID=019c6daf-8d03-7755-8ddc-12344d28f1a2#5</link>
<pubDate>Wed, 18 Feb 2026 21:59:55 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/very-simple-function-hanging-in-the-notification-tray/?ID=019c6daf-8d03-7755-8ddc-12344d28f1a2#5</guid>
<category>DisplayFusion</category>
<description><![CDATA[It would be really nice If there would be a way to debug which event triggered the execution that got stuck. One event triggered It for me now, and I dont know what triggered It. I was just reading now and It triggered. :/]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
It would be really nice If there would be a way to debug which event triggered the execution that got stuck. One event triggered It for me now, and I dont know what triggered It. I was just reading now and It triggered. :/
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Very simple function hanging in the Notification Tray</title>
<link>https://www.displayfusion.com/Discussions/View/very-simple-function-hanging-in-the-notification-tray/?ID=019c6daf-8d03-7755-8ddc-12344d28f1a2#4</link>
<pubDate>Wed, 18 Feb 2026 21:36:26 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/very-simple-function-hanging-in-the-notification-tray/?ID=019c6daf-8d03-7755-8ddc-12344d28f1a2#4</guid>
<category>DisplayFusion</category>
<description><![CDATA[I have identified a series of Window classes that are considered windows by the triggers but they are really just UI elements and ghost/transient/ephemeral UI elements in Windows 11. I created a exclusion list of those.
-("Shell_TrayWnd" "Shell_SecondaryTrayWnd" "TopLevelWindowForOverflowXamlIsl...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I have identified a series of Window classes that are considered windows by the triggers but they are really just UI elements and ghost/transient/ephemeral UI elements in Windows 11. I created a exclusion list of those.<br/>
<br/>
-("Shell_TrayWnd" "Shell_SecondaryTrayWnd" "TopLevelWindowForOverflowXamlIsland" "Windows.UI.Core.CoreWindow" "tooltips_class32" "XamlExplorerHostIslandWindow" "#32768" "Shell_InputSwitchTopLevelWindow" "ScreenClippingWindow" "Progman" "WorkerW" "MultitaskingViewFrame" "SysShadow" "Ghost" "ApplicationFrameWindow" "CiceroUIWndFrame" "Windows.Widgets" "SearchPane" "TaskSwitcherWnd")<br/>
<br/>
Now the function doesnt hang anymore. I dont know if I over did It, but so far the scripts are working perfectly now.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Very simple function hanging in the Notification Tray</title>
<link>https://www.displayfusion.com/Discussions/View/very-simple-function-hanging-in-the-notification-tray/?ID=019c6daf-8d03-7755-8ddc-12344d28f1a2#3</link>
<pubDate>Wed, 18 Feb 2026 20:41:10 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/very-simple-function-hanging-in-the-notification-tray/?ID=019c6daf-8d03-7755-8ddc-12344d28f1a2#3</guid>
<category>DisplayFusion</category>
<description><![CDATA[Quote:
Does this happen with any function you run or just that one?
That's the Weird part... This is the only one that gets stuck in the tray like this.
Here is the complete scenario:
I have another function that works in tandem with this one.
Script 1:
- Removes the window border;
- Maxim...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
<div class="BackGrey"><div class="Text"><div><b>Quote:</b></div>Does this happen with any function you run or just that one?</div></div><br/>
<br/>
That's the Weird part... This is the only one that gets stuck in the tray like this.<br/>
<br/>
Here is the complete scenario:<br/>
<br/>
I have another function that works in tandem with this one. <br/>
<br/>
Script 1:<br/>
- Removes the window border;<br/>
- Maximizes It to the center area of my Virtual Monitor;<br/>
- Enabled Taskbar Auto-Hide;<br/>
Triggers: <br/>
  - Window Created - Target: Windows with specific Text (Usually the game's name);<br/>
OBS: I have a few games that do not support UltraWide aspect ratio. For these games I add this trigger to center them in my screen with proper aspect ratio and resoltution  of 2560x1440.<br/>
<br/>
Script 2 (This one that's getting stuck):<br/>
- Disables Taskbar Auto-hide IF ENABLED<br/>
Triggers: <br/>
  - Window Focus - Target: Same as Script one, but on negative check (window names prefixed by "-") AND <br/>
  - Window Destroyed - Target: Game window (same target as script 1)<br/>
OBS: When I focus any window that is not the game, the taskbar auto-hide is disabled if It was enabled (the if clause is to prevent executing the call in case the focus went from one window that is not the game to another window that is not the game). WHen I close the game (window destroyed) this function also runs to restore the taskbar as if no other window was opened, the auto-hide would remain enabled.<br/>
<br/>
Script 3:<br/>
- Enables Taskbar Auto-Hide<br/>
Trigger: <br/>
  - Focus on the game window (same filter match on window text)<br/>
OBS: When I focus the "chromeless" game window, the taskbar auto-hides again.<br/>
<br/>
Info 1: None of the scripts 1 or 3 get stuck in the system tray. Only Script 2.<br/>
Info 2: All the scripts stop triggers when matched (checkbox on the trigger). So It never runs 2 Triggers per event.<br/>
Info 3: This script the only one with the negated window text trigger. Also, when I run It through a Hotkey, the script doesnt get stuck.<br/>
<br/>
Here's the exact trigger:<br/>
<br/>
Window Text: -"Steam Big Picture Mode" -"SHINOBI_AOV" -"World of Warcraft"
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Very simple function hanging in the Notification Tray</title>
<link>https://www.displayfusion.com/Discussions/View/very-simple-function-hanging-in-the-notification-tray/?ID=019c6daf-8d03-7755-8ddc-12344d28f1a2#2</link>
<pubDate>Wed, 18 Feb 2026 18:30:13 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/very-simple-function-hanging-in-the-notification-tray/?ID=019c6daf-8d03-7755-8ddc-12344d28f1a2#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[Does this happen with any function you run or just that one?]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Does this happen with any function you run or just that one?
</div>
]]></content:encoded>
</item>
<item>
<title>Very simple function hanging in the Notification Tray</title>
<link>https://www.displayfusion.com/Discussions/View/very-simple-function-hanging-in-the-notification-tray/?ID=019c6daf-8d03-7755-8ddc-12344d28f1a2</link>
<pubDate>Tue, 17 Feb 2026 22:19:07 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/very-simple-function-hanging-in-the-notification-tray/?ID=019c6daf-8d03-7755-8ddc-12344d28f1a2</guid>
<category>DisplayFusion</category>
<description><![CDATA[Hi Friends.
I have a simple function that whenever it's executed, my notification tray shows a DisplayFusion Icon for It, just as If It has hanged or something. What could be the cause?
I tried many different triggers to call It or even just call It woth Hotkey. Results are always the same.
IM...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hi Friends.<br/>
<br/>
I have a simple function that whenever it's executed, my notification tray shows a DisplayFusion Icon for It, just as If It has hanged or something. What could be the cause? <br/>
<br/>
I tried many different triggers to call It or even just call It woth Hotkey. Results are always the same.<br/>
<br/>
IMPORTANT INFO: The function does actually work, but The notification icon is just hanging there.... forever... I'm not sure this is causing resources to be consumed.<br/>
<br/>
Here's the function:<br/>
<br/>
<div class="Inline"><pre>using System;
using System.Drawing;

public static class DisplayFusionFunction {
    public static void Run(IntPtr windowHandle) { 
        if (BFS.Taskbar.IsWindowsTaskbarAutoHideEnabled())
            BFS.Taskbar.SetWindowsTaskbarAutoHide(false);
    }
}</pre></div><br/>
<br/>
Is there really anything suspicious about this function?
</div>
]]></content:encoded>
</item>
</channel>
</rss>