Bug 570

Summary: Alt-Tab in fullscreen
Product: [JogAmp] Newt Reporter: mike <msiggy>
Component: coreAssignee: Sven Gothel <sgothel>
Status: RESOLVED FIXED    
Severity: minor CC: sebastien.schneider
Priority: ---    
Version: 1   
Hardware: pc_x86_64   
OS: windows   
Type: --- SCM Refs:
be59d561fd6ab8aa659e85cd962d38fffd1acb0a
Workaround: ---
Bug Depends on:    
Bug Blocks: 914, 916    

Description mike 2012-03-28 22:36:48 CEST
Hi guys, 

I'm using jogl2.0-rc5, and I use GlWindow as my GLAutoDrawable. I experience weird behavior when i alt-tab out of my fullscreen application. The window loses focus and i can see my windows toolbar, but it is still on top of everything else. It feels like it is set to be always on top even though i explicitly call glWindow.setAlwaysOnTop(false); I also tried calling alwaysOnTop(false) after setting the window to fullscreen, but i get the same behavior.  Perhaps there is a bug in the setAlwaysOnTop() method? 

Thanks,
Mike



>Sven Gothel 
> 

hi Mike, 

this could be a bug, pls file a bug report. 

AFAIK .. we set always on top for fullscreen. 

You could try setting glWindow.setAlwaysOnTop(false); 
after the window is already in fullscreen mode, 
just to validate whether it then allows others to get up front. 

We would need to validate whether fullscreen can be properly 
achieved w/o setting always on top per default. 

Please copy this reply in your bug report as well, thank you! 

~Sven
Comment 1 Sebastien Schneider 2012-03-30 10:49:50 CEST
Hi,

With JOGL rc5 and single NEWT GLWindow, I got the same behavior as mike on Ubuntu 11.10 64bits and Windows 7 64bits. I tried to set glWindow.setAlwaysOnTop(false); after the full screen GLWindow was displayed but it had not effect.

Sebastien.
Comment 2 Sven Gothel 2012-04-27 03:09:24 CEST
Fixed w/ JOGL commit be59d561fd6ab8aa659e85cd962d38fffd1acb0a

    NEWT General/X11: Decouple setFullscreen() and setAlwaysOnTop()
      - X11 fullscreen/above: Don't assume 'always-on-top' if switch to fullscreen.
    
      - WindowImpl: Remove relation between 'always-on-top' and fullscreen
        when quering and switching.

Both functions shall work independent now, where 'always-on-top' is disabled per default,
of course.
 
Thank you for finding this 'diamond'. I have only tested on my laptop 
  - Linux
  - X11
  - KDE4
  - with and w/o compositor (effects, diff behavior)

.. since I am currently traveling.

Maybe you can validate on your platform, maybe windows/osx as well ?

I tested manually with TestGearsES2NEWT (keys 'f' and 'a'):
   java com.jogamp.opengl.test.junit.jogl.demos.es2.newt.TestGearsES2NEWT -time 1000000000

Cheers, Sven