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
|
// Mouse entered
|
||||||
case EnterNotify :
|
case EnterNotify :
|
||||||
{
|
{
|
||||||
Event event;
|
if (windowEvent.xcrossing.mode == NotifyNormal)
|
||||||
event.type = Event::MouseEntered;
|
{
|
||||||
pushEvent(event);
|
Event event;
|
||||||
|
event.type = Event::MouseEntered;
|
||||||
|
pushEvent(event);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Mouse left
|
// Mouse left
|
||||||
case LeaveNotify :
|
case LeaveNotify :
|
||||||
{
|
{
|
||||||
Event event;
|
if (windowEvent.xcrossing.mode == NotifyNormal)
|
||||||
event.type = Event::MouseLeft;
|
{
|
||||||
pushEvent(event);
|
Event event;
|
||||||
|
event.type = Event::MouseLeft;
|
||||||
|
pushEvent(event);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user