<?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>1208</bug_id>
          
          <creation_ts>2015-08-30 06:56:11 +0200</creation_ts>
          <short_desc>NEWT: Window: Consider avoiding operations if not supported, see getSupportedStateMask()</short_desc>
          <delta_ts>2015-09-27 01:27:04 +0200</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Newt</product>
          <component>core</component>
          <version>2.3.2</version>
          <rep_platform>All</rep_platform>
          <op_sys>all</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>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>1188</dependson>
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>---</cf_type>
          <cf_scm_refs>cc00d9b6c5a5c6b71ba14311fc6b17ce932d9a1e</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>5042</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2015-08-30 06:56:11 +0200</bug_when>
    <thetext>As is, NEWT WindowImpl performs requested operation
regardless whether the native implementation supports it.

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

&apos;getSupportedStateMask()&apos; 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5051</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2015-08-31 08:47:45 +0200</bug_when>
    <thetext>cc00d9b6c5a5c6b71ba14311fc6b17ce932d9a1e

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

    </bug>

</bugzilla>