mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-09 05:13:36 +08:00
Fix to avoid warping mouse until client successfully connects to
the server.
This commit is contained in:
@@ -73,8 +73,18 @@ CSecondaryScreen::open()
|
||||
// open the screen
|
||||
getScreen()->open();
|
||||
|
||||
// create and prepare our window
|
||||
// create and prepare our window. pretend we're active so
|
||||
// we don't try to show our window until later.
|
||||
{
|
||||
CLock lock(&m_mutex);
|
||||
assert(m_active == false);
|
||||
m_active = true;
|
||||
}
|
||||
createWindow();
|
||||
{
|
||||
CLock lock(&m_mutex);
|
||||
m_active = false;
|
||||
}
|
||||
|
||||
// subclass hook
|
||||
onPostOpen();
|
||||
|
||||
Reference in New Issue
Block a user