<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>916</bug_id>
          
          <creation_ts>2013-12-02 05:57:09 +0100</creation_ts>
          <short_desc>NEWT Fullscreen Mode on Windows ALT-TAB doesn&apos;t allow Application Switching</short_desc>
          <delta_ts>2013-12-04 03:32:11 +0100</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Newt</product>
          <component>windows</component>
          <version>1</version>
          <rep_platform>pc_all</rep_platform>
          <op_sys>windows</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>---</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>570</dependson>
    
    <dependson>914</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>---</cf_type>
          <cf_scm_refs>354b0b370bbfd14743267a9466f5e91e4d218a42</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>3426</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-12-02 05:57:09 +0100</bug_when>
    <thetext>&lt;http://forum.jogamp.org/Regression-of-alwaysOnTopBug-tp4030735p4030746.html&gt;

ALT-TAB application switch while NEWT window is in fullscreen mode works fine on:
  - GNU/Linux w/ X11
  - Mac OSX
  - Windows 7:
    - NVIDIA GPU/Driver
    - AMD GPU/Driver

But does not work on a laptop running Windows 7
using an Intel HD 4000 w/ Intel GPU driver version
  8.15.10.2618

This machine was last updated 2013-08-30
and I currently run a Windows update on said machine ..

Quotes below:

&gt;&gt; Strange, I just tried it on my other Windows 7 machine and it works fine...
&gt;&gt; That PC has an Radeon HD 5870.
&gt;
&gt; I tested w/ NVidia Windows7, so both NV and AMD are fine.
&gt;
&gt;&gt; The PC i&apos;m having the problem with is my laptop
&gt;&gt; with an Intel HD Graphics 3000. Maybe some weird driver problem, or just some
&gt;&gt; windows bug?
&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3427</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-12-02 07:01:28 +0100</bug_when>
    <thetext>(In reply to comment #0)
&gt; 
&gt; But does not work on a laptop running Windows 7
&gt; using an Intel HD 4000 w/ Intel GPU driver version
&gt;   8.15.10.2618
&gt; 
&gt; This machine was last updated 2013-08-30
&gt; and I currently run a Windows update on said machine ..

I have updated the machine (Windows update)
and the Intel GPU driver stays the same.
The issue still remains.

However, I enabled the NV GPU and re-run the Gears Applet
and voila .. ALT-TAB worked in fullscreen mode.

Hence this is an issue w/ the Intel GPU.

Further analysis hints that maybe:
  ChangeDisplaySettings(&amp;dm, CDS_FULLSCREEN)

is the issue w/ Intel GPU .. since this API is reported 
to cause problems:
  &lt;http://stackoverflow.com/questions/3549148/fullscreen-management-with-winapi&gt;
  &lt;http://www.indiegamer.com/archives/t-796.html&gt;

We could find a remedy using GDI API (stackoverflow)
or even go the DDraw route. 
More analysis might be required here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3429</commentid>
    <comment_count>2</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-12-02 19:55:19 +0100</bug_when>
    <thetext>(In reply to comment #1)
&gt; Further analysis hints that maybe:
&gt;   ChangeDisplaySettings(&amp;dm, CDS_FULLSCREEN)
&gt; 
&gt; is the issue w/ Intel GPU .. since this API is reported 
&gt; to cause problems:
&gt;  
&gt; &lt;http://stackoverflow.com/questions/3549148/fullscreen-management-with-
&gt; winapi&gt;
&gt;   &lt;http://www.indiegamer.com/archives/t-796.html&gt;
&gt; 
&gt; We could find a remedy using GDI API (stackoverflow)
&gt; or even go the DDraw route. 
&gt; More analysis might be required here.

Seems like we shall react on WM_ACTIVATE when in fullscreen mode:
  &lt;http://www.gamedev.net/topic/588559-opengl--alt-tab/&gt;

i.e. revoke CDS_FULLSCREEN when becoming inactive and activate it
when becoming active again. WM_ACTIVATE is sent in fullscreen mode
when ALT-TAB switching.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3430</commentid>
    <comment_count>3</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-12-03 04:09:22 +0100</bug_when>
    <thetext>Remedy for &apos;some&apos; display drivers, i.e. Intel HD:

- Explicitly push fullscreen window to BOTTOM when inactive (ALT-TAB)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3434</commentid>
    <comment_count>4</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-12-04 03:32:11 +0100</bug_when>
    <thetext>(In reply to comment #0)
&gt; 
&gt; But does not work on a laptop running Windows 7
&gt; using an Intel HD 4000 w/ Intel GPU driver version
&gt;   8.15.10.2618

New Intel HD 4000 driver 10.18.10.3345
works w/o the remedy.

However, applied remedy doesn&apos;t hurt and
enables ALT-TAB for older drivers, incl. HD 3000.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>