<div dir="ltr">Hi Fabian,<div><br></div><div>Yes, this only hides the tray when it should. The code only happens on the WM_DISPLAYCHANGE event, which occurs on resolution changes. I wouldn't write any code that would damage any existing features. </div><div><br></div><div>While the resolutions shouldn't differ, actually the SM_CYFULLSCREEN reports a larger dimension by 11. What happens is beforehand, the systray was getting drawn no matter what on a resolution update. This patch checks if the current foreground game is covering the entire screen, hence covering the area where the systray would normally be drawn, which is also the entire desktop resolution, and if it is, does not draw the systray.</div><div><br></div><div>I tested this patch thoroughly and it only enhances existing functionality.</div><div><br></div><div>Thanks in Advance,</div><div>Hamish</div></div><br><div class="gmail_quote"><div dir="ltr">On Sun, Dec 30, 2018 at 10:44 AM Fabian Maurer <<a href="mailto:dark.shadow4@web.de" target="_blank">dark.shadow4@web.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>
<div style="font-family:"Noto Sans";font-size:9pt;font-weight:400;font-style:normal">
<p style="margin:0px;text-indent:0px">Hi Hamish,</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">> if ( !( GetSystemMetrics(SM_CXFULLSCREEN) >= GetSystemMetrics(SM_CXSCREEN)</p>
<p style="margin:0px;text-indent:0px">> && GetSystemMetrics(SM_CYFULLSCREEN) >= GetSystemMetrics(SM_CYSCREEN) ))</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">Why are you comparing two system metrics? Are they changing when a program goes fullscreen? I'm pretty sure they don't.</p>
<p style="margin:0px;text-indent:0px">Did you also test that it only hides the taskbar when it should?  For me both SM_CXSCREEN and SM_CXFULLSCREEN are 1920  - that would hide the tray always, even in windowed mode.</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">Regards,</p>
<p style="margin:0px;text-indent:0px">Fabian Maurer</p></div></blockquote></div>