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.
This commit is contained in:
crs 2001-10-25 22:09:27 +00:00
parent c5df2edd14
commit dbdf20e804
1 changed files with 8 additions and 0 deletions

View File

@ -129,6 +129,14 @@ void CXWindowsSecondaryScreen::leave()
CLock lock(&m_mutex); 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 // raise and show the hider window
::XMapRaised(m_display, m_window); ::XMapRaised(m_display, m_window);