mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-12 07:13:23 +00:00
x11/skia: Add capture/releaseMouse impl
This commit is contained in:
parent
de6cf4b08d
commit
c5f6299df4
@ -223,10 +223,15 @@ gfx::Size X11Window::restoredSize() const
|
||||
|
||||
void X11Window::captureMouse()
|
||||
{
|
||||
XGrabPointer(m_display, m_window, False,
|
||||
PointerMotionMask | ButtonPressMask | ButtonReleaseMask,
|
||||
GrabModeAsync, GrabModeAsync,
|
||||
None, None, CurrentTime);
|
||||
}
|
||||
|
||||
void X11Window::releaseMouse()
|
||||
{
|
||||
XUngrabPointer(m_display, CurrentTime);
|
||||
}
|
||||
|
||||
void X11Window::setMousePosition(const gfx::Point& position)
|
||||
|
Loading…
x
Reference in New Issue
Block a user