Skip to content
This repository was archived by the owner on Mar 26, 2024. It is now read-only.

Commit c7586bb

Browse files
committed
Pass client component mouse events to server
1 parent 0e94b8f commit c7586bb

File tree

2 files changed

+2
-2
lines changed
  • projector-awt/src/main/kotlin/org/jetbrains/projector/awt
  • projector-server/src/main/kotlin/org/jetbrains/projector/server

2 files changed

+2
-2
lines changed

projector-awt/src/main/kotlin/org/jetbrains/projector/awt/PWindow.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class PWindow private constructor(val target: Component, private val isAgent: Bo
102102
else -> null
103103
}
104104

105-
private val thisWindow: Component?
105+
val thisWindow: Component?
106106
get() = when (target) {
107107
is Window -> target
108108
else -> SwingUtilities.getWindowAncestor(target)

projector-server/src/main/kotlin/org/jetbrains/projector/server/ProjectorServer.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ class ProjectorServer private constructor(
363363

364364
PMouseInfoPeer.lastMouseCoords.setLocation(shiftedMessage.x, shiftedMessage.y)
365365

366-
val window = PWindow.getWindow(message.windowId)?.target
366+
val window = PWindow.getWindow(message.windowId)?.thisWindow
367367
PMouseInfoPeer.lastWindowUnderMouse = window
368368

369369
window ?: return@invokeLater

0 commit comments

Comments
 (0)