<?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: Compatibility issue with SetWindowDisplayAffinity function</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=9dbfd249-1d08-4e27-8e1f-b3f77ee73fec" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=9dbfd249-1d08-4e27-8e1f-b3f77ee73fec</link>
<description>DisplayFusion RSS: Compatibility issue with SetWindowDisplayAffinity function</description>
<lastBuildDate>Mon, 25 May 2026 02:30:54 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=9dbfd249-1d08-4e27-8e1f-b3f77ee73fec</generator>
<item>
<title>RE: Compatibility issue with SetWindowDisplayAffinity function</title>
<link>https://www.displayfusion.com/Discussions/View/compatibility-issue-with-setwindowdisplayaffinity-function/?ID=9dbfd249-1d08-4e27-8e1f-b3f77ee73fec#2</link>
<pubDate>Fri, 05 Nov 2021 14:50:11 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/compatibility-issue-with-setwindowdisplayaffinity-function/?ID=9dbfd249-1d08-4e27-8e1f-b3f77ee73fec#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[Hello,
Thanks for the writeup, we we're able to reproduce the issue on our end, so we've added it to our list to look into.
Thanks!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hello,<br/>
<br/>
Thanks for the writeup, we we're able to reproduce the issue on our end, so we've added it to our list to look into.<br/>
<br/>
Thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>Compatibility issue with SetWindowDisplayAffinity function</title>
<link>https://www.displayfusion.com/Discussions/View/compatibility-issue-with-setwindowdisplayaffinity-function/?ID=9dbfd249-1d08-4e27-8e1f-b3f77ee73fec</link>
<pubDate>Mon, 01 Nov 2021 07:10:32 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/compatibility-issue-with-setwindowdisplayaffinity-function/?ID=9dbfd249-1d08-4e27-8e1f-b3f77ee73fec</guid>
<category>DisplayFusion</category>
<description><![CDATA[EDIT: Is there a way to add line breaks? Because if there is, I can't find it. Apologies for the difficult to read text as a result.
Here's a weird one for the development team
There appears to be a compatibility issue with the SetWindowDisplayAffinity function when using the WDA_MONITOR
displ...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
EDIT: Is there a way to add line breaks? Because if there is, I can't find it. Apologies for the difficult to read text as a result.<br/>
Here's a weird one for the development team <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/>
There appears to be a compatibility issue with the <a href="https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowdisplayaffinity" target="_blank" rel="nofollow"><b>SetWindowDisplayAffinity</b></a> function when using the <div class="Inline"><pre>WDA_MONITOR</pre></div> display affinity. I haven't tested the more recent <div class="Inline"><pre>WDA_EXCLUDEFROMCAPTURE</pre></div> setting. The issue manifests in certain UI elements not being correctly drawn after resizing a window using DisplayFusion functionality.<br/>
I'm guessing the issue may be the internal implementation of DisplayFusion's window resizing results in the window being moved "off display", at least from the point-of-view of certain Windows APIs. It's possible this is a bug in Windows itself, but I've only reproduced it in conjunction with DisplayFusion to date. Some reproduction steps follow   using KeePass as an example.<br/>
Start by installing <a href="https://keepass.info/" target="_blank" rel="nofollow"><b>KeePass</b></a> then browse to the installation directory and create a file named <i>KeePass.config.enforced.xml</i>. Set the file content to:<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="#code019e5cf89211734680f2f681c8382eba" 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('code019e5cf89211734680f2f681c8382ebaJs'); 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="code019e5cf89211734680f2f681c8382ebaJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;Configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
&lt;Security&gt;
&lt;PreventScreenCapture&gt;true&lt;/PreventScreenCapture&gt;
&lt;/Security&gt;
&lt;/Configuration&gt;</pre><textarea id="code019e5cf89211734680f2f681c8382eba" name="code019e5cf89211734680f2f681c8382eba" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
This enables the advanced feature to prevent the KeePass window from being captured in a screen shot or video recording (it's not available via the user interface currently). Internally, it's simply calling the <a href="https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowdisplayaffinity" target="_blank" rel="nofollow"><b>SetWindowDisplayAffinity</b></a> function with the <div class="Inline"><pre>WDA_MONITOR</pre></div> value.<br/>
Now start KeePass and use DisplayFusion's "Move Window to Centre of Monitor and Size to 75%" function. Other's may demonstrate the same issue, but that's the one I regularly use. The Quick Search box near the top of the window will be blacked-out after invoking the function, and will remain blacked-out if you use additional native Windows management hotkeys (e.g. snap window to left or right via Windows Key + Left/Right arrow). Hovering the mouse over the Quick Search box appears to resolve the issue, though I have seen artifacts manifest afterwards without having executed the DisplayFusion function again.<br/>
This is realistically a minor issue, but it's been a bugbear for months I've kept been meaning to report. As always, keep up the great work!
</div>
]]></content:encoded>
</item>
</channel>
</rss>