mirror of https://github.com/debauchee/barrier.git
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:
parent
c5df2edd14
commit
dbdf20e804
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue