mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-07 12:25:07 +08:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user