mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-12 14:45:21 +08:00
now allowing a screen to be its own neighbor to allow wrapping.
also no longer warping mouse to 0,0 when setting server screen info. that was causing the mouse to jump if the server screen had itself as its left or top neighbor (directly or indirectly) once a screen could be its own neighbor.
This commit is contained in:
@@ -894,9 +894,11 @@ CServer::CScreenInfo* CServer::getNeighbor(CScreenInfo* src,
|
||||
}
|
||||
assert(lastGoodScreen != NULL);
|
||||
|
||||
/* allow screen to be it's own neighbor to allow wrapping
|
||||
// no neighbor if best neighbor is the source itself
|
||||
if (lastGoodScreen == src)
|
||||
return NULL;
|
||||
*/
|
||||
|
||||
// if entering primary screen then be sure to move in far enough
|
||||
// to avoid the jump zone. if entering a side that doesn't have
|
||||
|
||||
Reference in New Issue
Block a user