<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Leonid,<br>
      <br>
      SwingUtilities.getWindowAncestor returns null if passed argument
      is instance<br>
      of Window, so "originalSource == winAncestorthis" check is to
      handle this case.<br>
      I will replace this method with SunToolkit.getContainingWindow,<br>
      it returns passed argument, if it's windows instance. So there
      will be only one check:<br>
      SunToolkit.getContainingWindow(originalSource )&nbsp; == winAncestor.<br>
      <br>
      On 10/29/2012 4:12 PM, Leonid Romanov wrote:<br>
    </div>
    <blockquote cite="mid:002c01cdb5ce$bb5d0b60$32172220$@oracle.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        mso-ligatures:none;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><font color="#1f497d" face="Calibri"
            size="2"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;mso-fareast-language:EN-US"
              lang="EN-US">I don&#8217;t understand lines 147-148 in
              WindowsRootPaneUI.java. Could you explain please why two
              checks are needed (originalSource == winAncestor and
              SwingUtilities.getWindowAncestor(originalSource) ==
              winAncestor) <o:p></o:p></span></font></p>
        <p class="MsoNormal"><font color="#1f497d" face="Calibri"
            size="2"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;mso-fareast-language:EN-US"
              lang="EN-US"><o:p>&nbsp;</o:p></span></font></p>
        <div style="border:none;border-left:solid blue 1.5pt;padding:0in
          0in 0in 4.0pt">
          <div>
            <div style="border:none;border-top:solid #E1E1E1
              1.0pt;padding:3.0pt 0in 0in 0in">
              <p class="MsoNormal"><b><font color="black" face="Calibri"
                    size="2"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:windowtext;font-weight:bold"
                      lang="EN-US">From:</span></font></b><font
                  color="black" face="Calibri" size="2"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:windowtext"
                    lang="EN-US"> <a class="moz-txt-link-abbreviated" href="mailto:awt-dev-bounces@openjdk.java.net">awt-dev-bounces@openjdk.java.net</a>
                    [<a class="moz-txt-link-freetext" href="mailto:awt-dev-bounces@openjdk.java.net">mailto:awt-dev-bounces@openjdk.java.net</a>] <b><span
                        style="font-weight:bold">On Behalf Of </span></b>Mikhail
                    Cherkasov<br>
                    <b><span style="font-weight:bold">Sent:</span></b>
                    Monday, October 29, 2012 4:12 PM<br>
                    <b><span style="font-weight:bold">To:</span></b>
                    <a class="moz-txt-link-abbreviated" href="mailto:awt-dev@openjdk.java.net">awt-dev@openjdk.java.net</a><br>
                    <b><span style="font-weight:bold">Subject:</span></b>
                    Re: &lt;AWT Dev&gt; [8] [PATCH] Review request for
                    8001633: Wrong alt processing during switching
                    between windows.<o:p></o:p></span></font></p>
            </div>
          </div>
          <p class="MsoNormal"><font color="black" face="Times New
              Roman" size="3"><span style="font-size:12.0pt"><o:p>&nbsp;</o:p></span></font></p>
          <div>
            <p class="MsoNormal"><font color="black" face="Times New
                Roman" size="3"><span style="font-size:12.0pt">Sorry, I
                  sent wrong link for webrev, please use this one: <br>
                  <a moz-do-not-send="true"
                    href="http://cr.openjdk.java.net/%7Ealexp/8001633/webrev.00/">http://cr.openjdk.java.net/~alexp/8001633/webrev.00/</a>
                  <br>
                  <br>
                  On 10/29/2012 2:23 PM, Mikhail Cherkasov wrote:<o:p></o:p></span></font></p>
          </div>
          <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
            <p class="MsoNormal"><font color="black" face="Times New
                Roman" size="3"><span style="font-size:12.0pt">Hi all, <br>
                  <br>
                  Could you please review a fix for <a
                    moz-do-not-send="true"
                    href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8001633">8001633</a>:
                  Wrong alt processing during switching between windows.<br>
                  Bug:<a moz-do-not-send="true"
                    href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8001633">
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8001633</a><br>
                  Webrev: <br>
                  <a moz-do-not-send="true"
                    href="http://cr.openjdk.java.net/%7Ebagiras/8/7082294.1/">http://cr.openjdk.java.net/~bagiras/8/7082294.1/</a>
                  <br>
                  <br>
                  To prevent wrong focus traversing to menu was added
                  additional check to AltProcessor.<br>
                  It checks that original source of 'alt' event belongs
                  to AltProcessor.winAncestor<br>
                  or its component.<br>
                  <br>
                  Patch is attached.<br>
                  <br>
                  Thanks, <br>
                  Mikhail. <o:p></o:p></span></font></p>
          </blockquote>
          <p class="MsoNormal"><font color="black" face="Times New
              Roman" size="3"><span style="font-size:12.0pt"><o:p>&nbsp;</o:p></span></font></p>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>