mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-04 15:50:10 +01:00
orbis-kernel: kevent: always clear display and graphics core events
This commit is contained in:
parent
00b9f016e3
commit
0cca4b83be
|
|
@ -134,6 +134,10 @@ static SysResult keventChange(KQueue *kq, KEvent &change, Thread *thread) {
|
|||
return orbis::ErrorCode::NOENT;
|
||||
}
|
||||
|
||||
if (change.filter == kEvFiltDisplay || change.filter == kEvFiltGraphicsCore) {
|
||||
change.flags |= kEvClear;
|
||||
}
|
||||
|
||||
if (!noteLock.owns_lock()) {
|
||||
noteLock = std::unique_lock(nodeIt->mutex);
|
||||
}
|
||||
|
|
@ -300,7 +304,7 @@ orbis::SysResult orbis::sys_kevent(Thread *thread, sint fd,
|
|||
|
||||
if (note.event.filter == kEvFiltGraphicsCore ||
|
||||
note.event.filter == kEvFiltDisplay) {
|
||||
waitHack = true;
|
||||
note.triggered = false;
|
||||
}
|
||||
|
||||
if (note.event.flags & kEvDispatch) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue