mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-10 05:36:22 +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:
@@ -357,6 +357,7 @@ CMSWindowsSecondaryScreen::warpCursor(SInt32 x, SInt32 y)
|
||||
// motion is simple (i.e. it's on the primary monitor) if there
|
||||
// is only one monitor.
|
||||
bool simple = !m_screen->isMultimon();
|
||||
/* disable attempts to use simple motion with multiple monitors for now
|
||||
if (!simple) {
|
||||
// also simple if motion is within the primary monitor
|
||||
simple = (x >= 0 && x < GetSystemMetrics(SM_CXSCREEN) &&
|
||||
@@ -374,6 +375,7 @@ CMSWindowsSecondaryScreen::warpCursor(SInt32 x, SInt32 y)
|
||||
simple = (x0 == 0 && y0 == 0);
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
// move the mouse directly to target position on NT family or if
|
||||
// not using multiple monitors.
|
||||
|
||||
Reference in New Issue
Block a user