mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-08 04:45:03 +08:00
reordered operations to reduce cursor flashing when entering
primary screen.
This commit is contained in:
@@ -109,13 +109,13 @@ CPrimaryScreen::enter(SInt32 x, SInt32 y, bool forScreensaver)
|
||||
CLock lock(&m_mutex);
|
||||
assert(m_active == true);
|
||||
|
||||
enterNoWarp();
|
||||
if (!forScreensaver) {
|
||||
warpCursor(x, y);
|
||||
}
|
||||
else {
|
||||
onEnterScreensaver();
|
||||
}
|
||||
enterNoWarp();
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user