mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-04 17:40:01 +00:00
Add Event::MouseEnter/Leave events on X11/Skia port
This commit is contained in:
parent
5e11bebaf0
commit
1bbaf60fd7
@ -223,6 +223,18 @@ void X11Window::processX11Event(XEvent& event)
|
||||
break;
|
||||
}
|
||||
|
||||
case EnterNotify:
|
||||
case LeaveNotify: {
|
||||
Event ev;
|
||||
ev.setType(event.type == EnterNotify ? Event::MouseEnter:
|
||||
Event::MouseLeave);
|
||||
ev.setModifiers(get_modifiers_from_xevent(event.xcrossing.state));
|
||||
ev.setPosition(gfx::Point(event.xcrossing.x / m_scale,
|
||||
event.xcrossing.y / m_scale));
|
||||
queueEvent(ev);
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user