Skip to content

Commit 6020d5e

Browse files
committed
fix: multiple cursors in waydroid Xtr126/cage-xtmapper#4
1 parent fa7de70 commit 6020d5e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

app/src/main/java/xtr/keymapper/server/RemoteService.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,13 @@ private boolean addNewDevices(String[] data) {
228228
public void startServer(KeymapProfile profile, KeymapConfig keymapConfig, IRemoteServiceCallback cb, int screenWidth, int screenHeight, int displayId) throws RemoteException {
229229
if (cb != null) cb.asBinder().linkToDeath(mStartServerDeathRecipient, 0);
230230
mHandler.post(() -> {
231-
if (inputService != null) stopServer(false);
231+
if (inputService != null) {
232+
if (isWaylandClient) {
233+
inputService.hideCursor();
234+
inputService.stop();
235+
}
236+
stopServer(false);
237+
}
232238
mWindowManager = getWindowManager(displayId);
233239

234240
if (keymapConfig.pointerMode != KeymapConfig.POINTER_SYSTEM) {

0 commit comments

Comments
 (0)