Bug 1208 - NEWT: Window: Consider avoiding operations if not supported, see getSupportedStateMask()
: NEWT: Window: Consider avoiding operations if not supported, see getSupported...
Status: RESOLVED FIXED
: None
: Newt
: JogAmp
: core (show other bugs)
: 2.3.2
: All all
: --- enhancement
: Sven Gothel
:
: 1188
:
  Show dependency treegraph
 
Reported: 2015-08-30 06:56 CEST by Sven Gothel
Modified: 2015-09-27 01:27 CEST (History)
0 users

:
Type: ---
SCM Refs:
cc00d9b6c5a5c6b71ba14311fc6b17ce932d9a1e
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Gothel 2015-08-30 06:56:11 CEST
As is, NEWT WindowImpl performs requested operation
regardless whether the native implementation supports it.

Here, the Window's stateMask is also modified 
regardless of successful operation.
Hence stateMask reflect the 'attempted operation' 
instead of the real state.

'getSupportedStateMask()' provides knowledge about
supported operations, as introduced via Bug 1188.

We may refine operations, i.e. not performing
operations and allow stateMask to reflect the real state.
Comment 1 Sven Gothel 2015-08-31 08:47:45 CEST
cc00d9b6c5a5c6b71ba14311fc6b17ce932d9a1e

   Bug 1208 - NEWT: Window: Consider avoiding operations if not supported, see getSupportedStateMask()
    
    - Skip operation if not supported
    
    - Fix skip operation if isFullscreen() && !isNativeValid():
        We have to store the state w/o action,
        so the state can be picked up at native creation.