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