<?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>1423</bug_id>
          
          <creation_ts>2020-01-15 13:58:23 +0100</creation_ts>
          <short_desc>Newt SWT GLWindow Fullscreen Wrong Coordinates in Embedded Layout</short_desc>
          <delta_ts>2023-01-24 09:02:34 +0100</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Jogl</product>
          <component>swt</component>
          <version>2.4.0</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>P4</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>1422</dependson>
          <blocked>674</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Marcel Au">marcel.au</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          <cc>sgothel</cc>
          
          <cf_type>DEFECT</cf_type>
          <cf_scm_refs>e03204605f95dc3586d8e3582250211954542be5</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>6585</commentid>
    <comment_count>0</comment_count>
    <who name="Marcel Au">marcel.au</who>
    <bug_when>2020-01-15 13:58:23 +0100</bug_when>
    <thetext>If I switch a GLWindow to fullscreen (GLWindow.setFullscreen()) the top left display starts at the 0,0 coordinates of the embedded view and not at the monitor 0,0 coordinates. 

I tried to correct this with the newTChild.setPosition method but this had no effect.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6593</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2020-01-16 02:01:31 +0100</bug_when>
    <thetext>Excellent, thank you.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6599</commentid>
    <comment_count>2</comment_count>
    <who name="Marcel Au">marcel.au</who>
    <bug_when>2020-01-16 12:08:43 +0100</bug_when>
    <thetext>Hello Sven,

with the latest built (1502) fullscreen works for Linux (as well as the correct layout on high dpi).

On Windows and Mac, however still the same top-left of the view.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6602</commentid>
    <comment_count>3</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2020-01-22 09:19:59 +0100</bug_when>
    <thetext>(In reply to Marcel Au from comment #2)
commit e03204605f95dc3586d8e3582250211954542be5

    Bug 1423: NEWT Child Window on OSX: Don&apos;t use parent derived location in fullscreen mode
    
    WindowDriver OSX: useParent(..) -&gt; useParentLocation(..) and add !isFullscreen() as a criteria to use the parent derived location.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6604</commentid>
    <comment_count>4</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2020-01-22 09:22:34 +0100</bug_when>
    <thetext>(In reply to Marcel Au from comment #2)
On Windows I cannot validate the bug, i.e. fullscreen works for me.

I used the VM as described in Bug 1422 comment 15</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6606</commentid>
    <comment_count>5</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2020-01-22 09:27:47 +0100</bug_when>
    <thetext>(In reply to Sven Gothel from comment #3)
This commit works for me on OSX as it resolved the issue.

I had no time to produce a new RC yet though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6609</commentid>
    <comment_count>6</comment_count>
    <who name="Marcel Au">marcel.au</who>
    <bug_when>2020-01-22 12:53:46 +0100</bug_when>
    <thetext>(In reply to Sven Gothel from comment #5)

Hello Sven,

WindowDriver OSX: useParent(..) -&gt; useParentLocation(..) and add !isFullscreen() as a criteria to use the parent derived location.

I&apos; don&apos;t understand. How should I call the above? Or do you have already committed the solution?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6611</commentid>
    <comment_count>7</comment_count>
    <who name="Marcel Au">marcel.au</who>
    <bug_when>2020-01-22 14:22:19 +0100</bug_when>
    <thetext>Hello Sven,

fullscreen works for me on windows (highdpi) now if I set/unset/set fullscreen.

At the first fullscreen event the top-left view coordinates are used.

If I then set fullscreen to false and then again fullscreen the view the correct coordinates are used.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6613</commentid>
    <comment_count>8</comment_count>
    <who name="Marcel Au">marcel.au</who>
    <bug_when>2020-01-28 08:45:15 +0100</bug_when>
    <thetext>(In reply to Sven Gothel from comment #5)

Hello Sven could you produce a new RC. 

I would like to test the fullscreen feature on Mac. 

My latest test was with built 1502.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6617</commentid>
    <comment_count>9</comment_count>
    <who name="Marcel Au">marcel.au</who>
    <bug_when>2020-02-04 08:18:21 +0100</bug_when>
    <thetext>Works with built 1503 on MacOSX.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6622</commentid>
    <comment_count>10</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2020-02-04 14:28:38 +0100</bug_when>
    <thetext>(In reply to Marcel Au from comment #9)
so all platforms (MacOS, Linux and also Windows) working?

On Windows there should have never been an issue though .. hmm.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6623</commentid>
    <comment_count>11</comment_count>
    <who name="Marcel Au">marcel.au</who>
    <bug_when>2020-02-04 16:12:54 +0100</bug_when>
    <thetext>(In reply to Sven Gothel from comment #10)
As far as I&apos;ve tested it, yes.

I don&apos;t know why I have to call the fullscreen action on Windows two times but it works anyway as a workaround without any time lag.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6757</commentid>
    <comment_count>12</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2023-01-24 09:02:34 +0100</bug_when>
    <thetext>see comment 11</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>