mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-09 05:13:36 +08:00
Another try at fixing broken mouse behavior when a windows system
has multiple monitors with 0,0 of the virtual desktop not at the upper-left.
This commit is contained in:
@@ -310,13 +310,6 @@ CMSWindowsPrimaryScreen::onPreDispatch(const CEvent* event)
|
||||
m_y = static_cast<SInt32>(msg->lParam);
|
||||
|
||||
if (!isActive()) {
|
||||
// shift by origin of virtual screen. the synergy
|
||||
// hook DLL does not account for
|
||||
SInt32 w, h;
|
||||
m_screen->getShape(x, y, w, h);
|
||||
x += m_x;
|
||||
y += m_y;
|
||||
|
||||
// motion on primary screen
|
||||
m_receiver->onMouseMovePrimary(x, y);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user