mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 17:55:08 +00:00
LibCore: Allow listening for multiple conditions using a single Notifier
While on it, implement currently unused Notifier::set_type correctly (but not efficiently) by re-registering Notifier in the EventLoop.
This commit is contained in:
parent
5d1657f57f
commit
77e4f0d7d8
6 changed files with 44 additions and 20 deletions
|
@ -118,7 +118,7 @@ bool EventLoopManagerQt::unregister_timer(int timer_id)
|
|||
|
||||
static void qt_notifier_activated(Core::Notifier& notifier)
|
||||
{
|
||||
Core::NotifierActivationEvent event(notifier.fd());
|
||||
Core::NotifierActivationEvent event(notifier.fd(), notifier.type());
|
||||
notifier.dispatch_event(event);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue