mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 12:51:05 +08:00
Fixed sf::Event::MouseEntered and sf::Event::MouseLeft on Linux
This commit is contained in:
parent
f5b9c7e216
commit
560b741efb
@ -817,18 +817,24 @@ bool WindowImplX11::processEvent(XEvent windowEvent)
|
||||
// Mouse entered
|
||||
case EnterNotify :
|
||||
{
|
||||
Event event;
|
||||
event.type = Event::MouseEntered;
|
||||
pushEvent(event);
|
||||
if (windowEvent.xcrossing.mode == NotifyNormal)
|
||||
{
|
||||
Event event;
|
||||
event.type = Event::MouseEntered;
|
||||
pushEvent(event);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
// Mouse left
|
||||
case LeaveNotify :
|
||||
{
|
||||
Event event;
|
||||
event.type = Event::MouseLeft;
|
||||
pushEvent(event);
|
||||
if (windowEvent.xcrossing.mode == NotifyNormal)
|
||||
{
|
||||
Event event;
|
||||
event.type = Event::MouseLeft;
|
||||
pushEvent(event);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user