Skip to content

Commit 1901d33

Browse files
committed
Finish v1.0.1
2 parents 913ea6e + 73eb5d0 commit 1901d33

13 files changed

Lines changed: 41 additions & 14 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
Changelog for Remote Support Tool
22
=================================
33

4+
1.0.1 (13 Mar 2019)
5+
-------------------
6+
7+
- fixed [issue #18](https://github.com/OpenIndex/RemoteSupportTool/issues/18): Mouse is shifted on Windows clients with high resolution screen
8+
9+
410
1.0.0 (20 Oct 2018)
511
-------------------
612

Core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<artifactId>RemoteSupportTool</artifactId>
99
<groupId>de.openindex.support</groupId>
10-
<version>1.0.0</version>
10+
<version>1.0.1</version>
1111
</parent>
1212

1313
<artifactId>RemoteSupportTool-Core</artifactId>

Customer/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<artifactId>RemoteSupportTool</artifactId>
99
<groupId>de.openindex.support</groupId>
10-
<version>1.0.0</version>
10+
<version>1.0.1</version>
1111
</parent>
1212

1313
<artifactId>RemoteSupportTool-Customer</artifactId>

Customer/src/main/java/de/openindex/support/customer/CustomerApplication.java

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
import java.awt.event.ActionEvent;
3939
import java.awt.event.ActionListener;
4040
import java.awt.event.KeyEvent;
41+
import java.awt.geom.AffineTransform;
4142
import java.awt.image.BufferedImage;
4243
import java.io.ByteArrayOutputStream;
4344
import java.io.File;
@@ -444,7 +445,27 @@ else if (request.keyChar != KeyEvent.CHAR_UNDEFINED) {
444445
} else if (object instanceof MouseMoveRequest) {
445446

446447
final MouseMoveRequest request = (MouseMoveRequest) object;
447-
robot.mouseMove(request.x, request.y);
448+
final int x;
449+
final int y;
450+
451+
// On Windows systems we need to convert the coordinates
452+
// according to the current screen scaling factor.
453+
if (SystemUtils.IS_OS_WINDOWS) {
454+
final GraphicsConfiguration screenConfiguration = screen.getDefaultConfiguration();
455+
final AffineTransform transform = screenConfiguration.getDefaultTransform();
456+
final double scaleX = (transform != null && transform.getScaleX() > 0) ?
457+
transform.getScaleX() : 1;
458+
final double scaleY = (transform != null && transform.getScaleY() > 0) ?
459+
transform.getScaleY() : 1;
460+
461+
x = (int) ((double) request.x / scaleX);
462+
y = (int) ((double) request.y / scaleY);
463+
} else {
464+
x = request.x;
465+
y = request.y;
466+
}
467+
468+
robot.mouseMove(x, y);
448469

449470
} else if (object instanceof MousePressRequest) {
450471

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Remote Support Tool 1.0.0
1+
Remote Support Tool 1.0.1
22
=========================
33

44
*Remote Support Tool* is an easy single click solution for remote maintenance.
@@ -213,5 +213,5 @@ Further information
213213

214214
- [*Remote Support Tool* at GitHub](https://github.com/OpenIndex/RemoteSupportTool)
215215
- [Releases of *Remote Support Tool*](https://github.com/OpenIndex/RemoteSupportTool/releases)
216-
- [Changelog of *Remote Support Tool*](https://github.com/OpenIndex/RemoteSupportTool/blob/develop/CHANGELOG.md)
216+
- [Changelog of *Remote Support Tool*](https://github.com/OpenIndex/RemoteSupportTool/blob/master/CHANGELOG.md)
217217
- [Documentation of *Remote Support Tool*](https://github.com/OpenIndex/RemoteSupportTool/wiki)

Staff/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<artifactId>RemoteSupportTool</artifactId>
99
<groupId>de.openindex.support</groupId>
10-
<version>1.0.0</version>
10+
<version>1.0.1</version>
1111
</parent>
1212

1313
<artifactId>RemoteSupportTool-Staff</artifactId>

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>de.openindex.support</groupId>
88
<artifactId>RemoteSupportTool</artifactId>
9-
<version>1.0.0</version>
9+
<version>1.0.1</version>
1010
<packaging>pom</packaging>
1111

1212
<name>RemoteSupportTool</name>
@@ -67,17 +67,17 @@
6767
<dependency>
6868
<groupId>de.openindex.support</groupId>
6969
<artifactId>RemoteSupportTool-Core</artifactId>
70-
<version>1.0.0</version>
70+
<version>1.0.1</version>
7171
</dependency>
7272
<dependency>
7373
<groupId>de.openindex.support</groupId>
7474
<artifactId>RemoteSupportTool-Customer</artifactId>
75-
<version>1.0.0</version>
75+
<version>1.0.1</version>
7676
</dependency>
7777
<dependency>
7878
<groupId>de.openindex.support</groupId>
7979
<artifactId>RemoteSupportTool-Staff</artifactId>
80-
<version>1.0.0</version>
80+
<version>1.0.1</version>
8181
</dependency>
8282
<dependency>
8383
<groupId>commons-io</groupId>

release/bundle-linux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
STAFF_TOOL="StaffSupportTool"
1919
CUSTOMER_TOOL="CustomerSupportTool"
20-
VERSION="1.0.0"
20+
VERSION="1.0.1"
2121

2222
MAKESELF="makeself"
2323
DIR=$( cd $( dirname ${BASH_SOURCE[0]} ) && pwd )

release/bundle-mac.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
STAFF_TOOL="StaffSupportTool"
1919
CUSTOMER_TOOL="CustomerSupportTool"
20-
VERSION="1.0.0"
20+
VERSION="1.0.1"
2121

2222
DIR=$( cd $( dirname ${BASH_SOURCE[0]} ) && pwd )
2323
TARGET_DIR="$DIR/target"

release/bundle-windows.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
STAFF_TOOL="StaffSupportTool"
1919
CUSTOMER_TOOL="CustomerSupportTool"
20-
VERSION="1.0.0"
20+
VERSION="1.0.1"
2121

2222
SEVENZIP="7z"
2323
SEVENZIP_OPTIONS="-mx=9"

0 commit comments

Comments
 (0)