mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-09-03 13:47:53 -04:00
Disable mouse lock hack for linux
This commit is contained in:
parent
963e26bc07
commit
88978cc633
@ -27,6 +27,7 @@ void MouseTracker::OnMouseMoved(wxMouseEvent& event) {
|
|||||||
|
|
||||||
if (isMouseDown || isMouseRightDown) {
|
if (isMouseDown || isMouseRightDown) {
|
||||||
#ifndef __APPLE__
|
#ifndef __APPLE__
|
||||||
|
#ifndef __linux__
|
||||||
if (horizDragLock && vertDragLock) {
|
if (horizDragLock && vertDragLock) {
|
||||||
target->WarpPointer(originMouseX * ClientSize.x, (1.0 - originMouseY) * ClientSize.y);
|
target->WarpPointer(originMouseX * ClientSize.x, (1.0 - originMouseY) * ClientSize.y);
|
||||||
mouseX = originMouseX;
|
mouseX = originMouseX;
|
||||||
@ -38,6 +39,7 @@ void MouseTracker::OnMouseMoved(wxMouseEvent& event) {
|
|||||||
target->WarpPointer(originMouseX * ClientSize.x, event.m_y);
|
target->WarpPointer(originMouseX * ClientSize.x, event.m_y);
|
||||||
mouseX = originMouseX;
|
mouseX = originMouseX;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user