initLocation_1.txt
1 |
=== modified file 'src/com/goldencode/p2j/ui/client/gui/driver/web/GuiWebEmulatedWindow.java' |
---|---|
2 |
--- src/com/goldencode/p2j/ui/client/gui/driver/web/GuiWebEmulatedWindow.java 2015-11-12 16:04:40 +0000 |
3 |
+++ src/com/goldencode/p2j/ui/client/gui/driver/web/GuiWebEmulatedWindow.java 2016-01-08 16:17:24 +0000 |
4 |
@@ -29,6 +29,7 @@ |
5 |
** 009 CA 20151024 Added support for WINDOW:SENSITIVE attribute. |
6 |
** SBI 20151026 Fixed mouse processing for modal windows. |
7 |
** EVL 20151106 Adding method to obtain the BufferedImageDrawHelper instance. |
8 |
+** 010 SBI 20160108 Changed to set the initial location. |
9 |
*/ |
10 |
|
11 |
package com.goldencode.p2j.ui.client.gui.driver.web; |
12 |
@@ -81,6 +82,9 @@ |
13 |
/** Helper to generate image wrappers. */ |
14 |
private final BufferedImageDrawHelper drawHelper; |
15 |
|
16 |
+ /** Flag indicating that the initial location should be initialized. */ |
17 |
+ private boolean initLocation = true; |
18 |
+ |
19 |
/** |
20 |
* Constructor. |
21 |
* |
22 |
@@ -410,8 +414,9 @@ |
23 |
websock.unclip(); |
24 |
break; |
25 |
case SET_LOCATION: |
26 |
- if (x != ps.x || y != ps.y) |
27 |
+ if (x != ps.x || y != ps.y || initLocation) |
28 |
{ |
29 |
+ initLocation = false; |
30 |
x = ps.x; |
31 |
y = ps.y; |
32 |
websock.setWindowLocation(x, y); |
33 |
|