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

Commit

Permalink
Pass client component mouse events to server
Browse files Browse the repository at this point in the history
  • Loading branch information
ARTI1208 committed Mar 22, 2022
1 parent 0e94b8f commit c7586bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class PWindow private constructor(val target: Component, private val isAgent: Bo
else -> null
}

private val thisWindow: Component?
val thisWindow: Component?
get() = when (target) {
is Window -> target
else -> SwingUtilities.getWindowAncestor(target)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ class ProjectorServer private constructor(

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

val window = PWindow.getWindow(message.windowId)?.target
val window = PWindow.getWindow(message.windowId)?.thisWindow
PMouseInfoPeer.lastWindowUnderMouse = window

window ?: return@invokeLater
Expand Down

0 comments on commit c7586bb

Please sign in to comment.