Project

General

Profile

window.diff.txt

Vadim Gindin, 06/27/2016 05:15 AM

Download (1.68 KB)

 
1
=== modified file 'src/com/goldencode/p2j/ui/client/gui/MenuItemGuiImpl.java'
2
--- src/com/goldencode/p2j/ui/client/gui/MenuItemGuiImpl.java	2016-06-22 08:06:07 +0000
3
+++ src/com/goldencode/p2j/ui/client/gui/MenuItemGuiImpl.java	2016-06-27 09:13:18 +0000
4
@@ -678,7 +678,7 @@
5
       if (e != null)
6
       {
7
          // determine the real mouse source
8
-         Widget<GuiOutputManager> source = window().findMouseSource(new NativePoint(e.getX(), e.getY()));
9
+         Widget<GuiOutputManager> source = topLevelWindow().findMouseSource(new NativePoint(e.getX(), e.getY()));
10
 
11
          // transfer pressed state to new MENUBAR item
12
          if (pressed &&
13

    
14
=== modified file 'src/com/goldencode/p2j/ui/client/gui/SubMenuGuiImpl.java'
15
--- src/com/goldencode/p2j/ui/client/gui/SubMenuGuiImpl.java	2016-06-22 08:06:07 +0000
16
+++ src/com/goldencode/p2j/ui/client/gui/SubMenuGuiImpl.java	2016-06-27 09:13:18 +0000
17
@@ -770,7 +770,7 @@
18
       if (e != null)
19
       {
20
          // determine the real mouse source
21
-         Widget<?> source = window().findMouseSource(new NativePoint(e.getX(), e.getY()));
22
+         Widget<?> source = topLevelWindow().findMouseSource(new NativePoint(e.getX(), e.getY()));
23
          if (source != this && !(source instanceof MenuItem || source instanceof SubMenu))
24
          {
25
             hideBody(true);
26
@@ -872,7 +872,7 @@
27
       Widget<?> source = null;
28
       if (e != null)
29
       {
30
-         source = window().findMouseSource(new NativePoint(e.getX(), e.getY()));
31
+         source = topLevelWindow().findMouseSource(new NativePoint(e.getX(), e.getY()));
32
          if (source != this && !(source instanceof MenuItem || source instanceof SubMenu))
33
          {
34
             hideBody(true);
35