<?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: bug in windowbounds ?</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=0f30bfea-008c-4101-8797-84e7034310a3" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=0f30bfea-008c-4101-8797-84e7034310a3</link>
<description>DisplayFusion RSS: bug in windowbounds ?</description>
<lastBuildDate>Fri, 22 May 2026 12:42:45 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=0f30bfea-008c-4101-8797-84e7034310a3</generator>
<item>
<title>RE: bug in windowbounds ?</title>
<link>https://www.displayfusion.com/Discussions/View/bug-in-windowbounds/?ID=0f30bfea-008c-4101-8797-84e7034310a3#3</link>
<pubDate>Sat, 08 Oct 2016 11:37:07 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/bug-in-windowbounds/?ID=0f30bfea-008c-4101-8797-84e7034310a3#3</guid>
<category>DisplayFusion</category>
<description><![CDATA[We've just released a new DisplayFusion beta version (http://www.displayfusion.com/Download/Beta/) and this issue should be all fixed up. Please let us know if you run into any trouble after updating.
Thanks!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
We've just released a new DisplayFusion beta version (<a href="http://www.displayfusion.com/Download/Beta/" target="_blank" rel="nofollow"><b>http://www.displayfusion.com/Download/Beta/</b></a>) and this issue should be all fixed up. Please let us know if you run into any trouble after updating.<br/>
<br/>
Thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: bug in windowbounds ?</title>
<link>https://www.displayfusion.com/Discussions/View/bug-in-windowbounds/?ID=0f30bfea-008c-4101-8797-84e7034310a3#2</link>
<pubDate>Wed, 28 Sep 2016 19:16:32 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/bug-in-windowbounds/?ID=0f30bfea-008c-4101-8797-84e7034310a3#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[We were able to reproduce this issue here, and I've added it to our list. We'll be sure to let you know as soon as we're able to fix it up
Thanks!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
We were able to reproduce this issue here, and I've added it to our list. We'll be sure to let you know as soon as we're able to fix it up <img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/face-smile.light.svg" alt=":)" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:16px;height:16px;" HelpButtonData=":)" HelpButtonDataAlign="BelowMiddle" /><br/>
<br/>
Thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>bug in windowbounds ?</title>
<link>https://www.displayfusion.com/Discussions/View/bug-in-windowbounds/?ID=0f30bfea-008c-4101-8797-84e7034310a3</link>
<pubDate>Sat, 24 Sep 2016 18:49:07 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/bug-in-windowbounds/?ID=0f30bfea-008c-4101-8797-84e7034310a3</guid>
<category>DisplayFusion</category>
<description><![CDATA[Hi,
I've wrote scripts to mirror a window's position on the horizontal or vertical axis of the screen. The vertical flip works fine.. but with the horizontal flip, the screen starts slowly walking to the left indicating something wrong with the value windowbounds reports. At least thats what i t...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hi,<br/>
<br/>
I've wrote scripts to mirror a window's position on the horizontal or vertical axis of the screen. The vertical flip works fine.. but with the horizontal flip, the screen starts slowly walking to the left indicating something wrong with the value windowbounds reports. At least thats what i think. Can anyone confirm this ?<br/>
<br/>
Mirror Vertical<br/>
<div class="col-md-12 BoxWrap"><div class="Box table-responsive"><a name="code" style="width:0; height:0;"></a><h2 class="TableTitle" style="border:0"><div class="TableTitleText">Code</div><div class="TitleButtons"><div class="TableTitleButton"><a href="#" onclick="return false;" data-clipboard-target="#code019e4fb5a646759bb9f4f7e43dda04c0" class="ClipboardCopyControl"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019e4fb5a646759bb9f4f7e43dda04c0Js'); return false;"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Select All</span></a></div></div></h2><div class="TableTitleContent table-responsive"><div class="AceEditorWrapper" style="border-top:solid 1px var(--color-default-border);padding:0"><pre id="code019e4fb5a646759bb9f4f7e43dda04c0Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">using System;
using System.Drawing;

// The 'windowHandle' parameter will contain the window handle for the:
//   - Active window when run by hotkey
//   - Trigger target when run by a Trigger rule
//   - TitleBar Button owner when run by a TitleBar Button
//   - Jump List owner when run from a Taskbar Jump List
//   - Currently focused window if none of these match
public static class DisplayFusionFunction
{
public static void Run(IntPtr windowHandle)
{
        IntPtr focusedWindow = BFS.Window.GetFocusedWindow();
        Rectangle monitorRect = BFS.Monitor.GetMonitorWorkAreaByWindow(windowHandle);
        Rectangle windowBounds = BFS.Window.GetBounds( focusedWindow );  
        BFS.Window.SetLocation( focusedWindow, ( monitorRect.Width - windowBounds.X - windowBounds.Width ) , windowBounds.Y );       
    }   
}</pre><textarea id="code019e4fb5a646759bb9f4f7e43dda04c0" name="code019e4fb5a646759bb9f4f7e43dda04c0" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
Works as expected<br/>
<br/>
Mirror horizontal<br/>
<div class="col-md-12 BoxWrap"><div class="Box table-responsive"><a name="code" style="width:0; height:0;"></a><h2 class="TableTitle" style="border:0"><div class="TableTitleText">Code</div><div class="TitleButtons"><div class="TableTitleButton"><a href="#" onclick="return false;" data-clipboard-target="#code019e4fb5a6497349b48b021e506c881e" class="ClipboardCopyControl"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019e4fb5a6497349b48b021e506c881eJs'); return false;"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Select All</span></a></div></div></h2><div class="TableTitleContent table-responsive"><div class="AceEditorWrapper" style="border-top:solid 1px var(--color-default-border);padding:0"><pre id="code019e4fb5a6497349b48b021e506c881eJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">using System;
using System.Drawing;

// The 'windowHandle' parameter will contain the window handle for the:
//   - Active window when run by hotkey
//   - Trigger target when run by a Trigger rule
//   - TitleBar Button owner when run by a TitleBar Button
//   - Jump List owner when run from a Taskbar Jump List
//   - Currently focused window if none of these match
public static class DisplayFusionFunction
{
public static void Run(IntPtr windowHandle)
{
        IntPtr focusedWindow = BFS.Window.GetFocusedWindow();
        Rectangle monitorRect = BFS.Monitor.GetMonitorWorkAreaByWindow(windowHandle);
        Rectangle windowBounds = BFS.Window.GetBounds( focusedWindow );  
        BFS.Window.SetLocation( focusedWindow, (windowBounds.X), ( monitorRect.Height - windowBounds.Y - windowBounds.Height ) );
    }   
}</pre><textarea id="code019e4fb5a6497349b48b021e506c881e" name="code019e4fb5a6497349b48b021e506c881e" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
<br/>
Doesn't work as expected.
</div>
]]></content:encoded>
</item>
</channel>
</rss>