Bug 914

Summary: Don't allow 'alwaysontop' in fullscreen mode, always allow switching to other applications via ALT-TAB
Product: [JogAmp] Newt Reporter: Sven Gothel <sgothel>
Component: coreAssignee: Sven Gothel <sgothel>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: ---    
Version: 1   
Hardware: All   
OS: all   
Type: --- SCM Refs:
4cb35d98a1b25fb8347584b0ab6534c7cfc5946c 69c334448cfe8af553fd97689137ecf8f996b378 0237bde0f3c13d393c3942b41f79656a80fd578d
Workaround: ---
Bug Depends on: 570    
Bug Blocks: 916    

Description Sven Gothel 2013-12-01 22:32:01 CET
As described @ <http://forum.jogamp.org/Regression-of-alwaysOnTopBug-tp4030735p4030738.html>,
that we shall not steal the desktop in fullscreen mode via 'alwaysontop'.

Latest tests on X11/GNU/Linux and Windows7:

With default settings, i.e. alwaysontop (atop) disabled,
it works as expected here, i.e.:
  - ALT-TAB triggers WM dialog, switching between apps.
  - ALT-TAB can actually switch to other apps.

However, with enabled atop:
  - ALT-TAB triggers WM dialog, switching between apps.
  - ALT-TAB does _not_ switch to other apps.

I consider this a serious issue, since we shall not steal
the desktop in fullscreen mode.

We need to disable atop in fullscreen mode.
Comment 1 Sven Gothel 2013-12-02 02:58:02 CET
OSX 10.9 ALT-TAB does not work .. fix in progress
Comment 2 Sven Gothel 2013-12-02 05:40:35 CET
69c334448cfe8af553fd97689137ecf8f996b378
  Newt OSX: Don't use exclusive fullscreen mode (captured display) 
  in favor of proper WM incl. ALT-TAB app-switching

We don't use exclusive fullscreen anymore (capturing display)
allowing ALT-TAB to allow process/app switching!

Shall have no penalty on modern GPU and is also recommended, see bottom box @
<https://developer.apple.com/library/mac/documentation/graphicsimaging/Conceptual/QuartzDisplayServicesConceptual/Articles/DisplayCapture.html>
Comment 3 Sven Gothel 2013-12-03 21:56:07 CET
0237bde0f3c13d393c3942b41f79656a80fd578d
    Newt OSX: Reset NSApp's presentationOptions @ windowClose0();
                       Assume having focus in fullscreen-mode
    
    - Reset NSApp's presentationOptions @ windowClose0()
    
      Commit 69c334448cfe8af553fd97689137ecf8f996b378 started using the [NSApp setPresentationOptions: opts]
      but missed to reset to defaults @ windowClose0();
    
    - Assume having focus in fullscreen-mode
      NewtMacWindow::windowDidBecomeKey()' is not always called in fullscreen-mode!
    
    Note: OSX Fullscreen from a browser still shows the browser title-bar
    until mouse-click. Don't know how to avoid this. Minor issue..