From dbdf20e804071ee8d7bf09372b3d8923d5e06d3d Mon Sep 17 00:00:00 2001 From: crs Date: Thu, 25 Oct 2001 22:09:27 +0000 Subject: [PATCH] changed hider window to move underneath mouse when leaving the screen. this makes it so if the mouse is moved locally, it'll reappear where it was last seen. --- synergy/CXWindowsSecondaryScreen.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/synergy/CXWindowsSecondaryScreen.cpp b/synergy/CXWindowsSecondaryScreen.cpp index 2a347b30..c225616f 100644 --- a/synergy/CXWindowsSecondaryScreen.cpp +++ b/synergy/CXWindowsSecondaryScreen.cpp @@ -129,6 +129,14 @@ void CXWindowsSecondaryScreen::leave() CLock lock(&m_mutex); + // move hider window under the mouse + int x, y, dummy; + unsigned int dummyMask; + Window dummyWindow; + ::XQueryPointer(m_display, m_root, &dummyWindow, &dummyWindow, + &x, &y, &dummy, &dummy, &dummyMask); + ::XMoveWindow(m_display, m_window, x, y); + // raise and show the hider window ::XMapRaised(m_display, m_window);