From 23464a38a776bf96ce720e3e5220c188a740b33a Mon Sep 17 00:00:00 2001 From: Xinyu Hou Date: Fri, 29 Sep 2017 12:14:09 -0400 Subject: [PATCH] #6161 Install hook before connection established --- src/lib/platform/MSWindowsDesks.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/platform/MSWindowsDesks.cpp b/src/lib/platform/MSWindowsDesks.cpp index b7d67440..992f7d14 100644 --- a/src/lib/platform/MSWindowsDesks.cpp +++ b/src/lib/platform/MSWindowsDesks.cpp @@ -117,6 +117,10 @@ MSWindowsDesks::MSWindowsDesks( if (hookLibrary != NULL) queryHookLibrary(hookLibrary); + if (m_install != NULL && !m_isPrimary) { + m_install(); + } + m_cursor = createBlankCursor(); m_deskClass = createDeskWindowClass(m_isPrimary); m_keyLayout = GetKeyboardLayout(GetCurrentThreadId());