=== modified file 'src/com/goldencode/p2j/ui/client/gui/driver/EmulatedWindowState.java' --- src/com/goldencode/p2j/ui/client/gui/driver/EmulatedWindowState.java 2015-09-01 18:27:30 +0000 +++ src/com/goldencode/p2j/ui/client/gui/driver/EmulatedWindowState.java 2015-09-07 19:41:29 +0000 @@ -458,6 +458,9 @@ ps.y, ps.centered); break; + case SET_TITLE: + extra = String.format(" title = %s", ps.title); + break; case DRAW_LINE: extra = String.format(" x1 = %d; y1 = %d; x2 = %d; y2 = %d", ps.x, === modified file 'src/com/goldencode/p2j/ui/client/gui/driver/web/res/p2j.mouse.js' --- src/com/goldencode/p2j/ui/client/gui/driver/web/res/p2j.mouse.js 2015-09-07 21:11:46 +0000 +++ src/com/goldencode/p2j/ui/client/gui/driver/web/res/p2j.mouse.js 2015-09-07 21:19:44 +0000 @@ -555,6 +555,7 @@ function windowIconifyCallback(win, evt, mousePos, opCode) { + p2j.logger.log("windowIconifyCallback: " + opCode + " win.id = " + win.id); win.iconify(); var message = new Uint8Array(6); === modified file 'src/com/goldencode/p2j/ui/client/gui/driver/web/res/p2j.screen.js' --- src/com/goldencode/p2j/ui/client/gui/driver/web/res/p2j.screen.js 2015-09-07 21:11:46 +0000 +++ src/com/goldencode/p2j/ui/client/gui/driver/web/res/p2j.screen.js 2015-09-07 21:19:44 +0000 @@ -829,6 +829,7 @@ break; case ops.SET_TITLE: var title = p2j.socket.readStringBinaryMessage(message, idx + 1); + extra = " title = " + title; this.title = title; taskBar.draw(); // TODO: force taskbar to repaint === modified file 'src/com/goldencode/p2j/ui/client/gui/driver/web/res/p2j.virtual_desktop.js' --- src/com/goldencode/p2j/ui/client/gui/driver/web/res/p2j.virtual_desktop.js 2015-09-07 19:02:47 +0000 +++ src/com/goldencode/p2j/ui/client/gui/driver/web/res/p2j.virtual_desktop.js 2015-09-07 21:16:42 +0000 @@ -311,7 +311,7 @@ var taskIcon = new TaskIcon(win, null, TASK_ICON_WIDTH, TASK_ICON_HEIGHT, foreground); taskIcons.push(taskIcon); /** - * By default the task s active. Only one task can be active. + * By default the task is active. Only one task can be active. */ deactivateHead(); return taskIcon; @@ -409,7 +409,12 @@ taskIcon.draw(); }; - // MISSING JAVADOC + /** + * It is a "dragstart" event handler that makes the movable task bar to appear half transparent. + * + * @param {DragEvent} event + * The drag event. + */ function startDragging(event) { event.dataTransfer.setData('text/plain',null); @@ -417,13 +422,24 @@ event.target.style.opacity = DRAGGED_OPACITY; } - // MISSING JAVADOC + /** + * It is a "dragend" event handler that restores the opacity of the movable + * task bar. + * + * @param {DragEvent} event + * The drag event. + */ function dragEnded(event) { event.target.style.opacity = 1; } - // MISSING JAVADOC + /** + * It is a "drag" event handler. + * + * @param {DragEvent} event + * The drag event. + */ function drag( event ) { }