diff --git a/server/src/main/java/com/genymobile/scrcpy/EventController.java b/server/src/main/java/com/genymobile/scrcpy/EventController.java index 0af1aed8..7c40cce0 100644 --- a/server/src/main/java/com/genymobile/scrcpy/EventController.java +++ b/server/src/main/java/com/genymobile/scrcpy/EventController.java @@ -28,9 +28,6 @@ public class EventController { this.device = device; this.connection = connection; initPointer(); - - // on start, turn screen on - turnScreenOn(); } private void initPointer() { @@ -61,6 +58,9 @@ public class EventController { } public void control() throws IOException { + // on start, turn screen on + turnScreenOn(); + while (true) { handleEvent(); }