event: refactor HookSystem into a typed event bus (#13333)
Refactors the old HookSystem into a typed event bus with clear separation, discovery and types.
This commit is contained in:
parent
b4ee4674f9
commit
b88813c7ef
58 changed files with 493 additions and 516 deletions
|
|
@ -7,6 +7,7 @@
|
|||
#include "../desktop/view/WLSurface.hpp"
|
||||
#include "../helpers/sync/SyncTimeline.hpp"
|
||||
#include "../helpers/time/Time.hpp"
|
||||
#include "../helpers/signal/Signal.hpp"
|
||||
#include <tuple>
|
||||
|
||||
class CMonitor;
|
||||
|
|
@ -184,8 +185,8 @@ class CPointerManager {
|
|||
bool setHWCursorBuffer(SP<SMonitorPointerState> state, SP<Aquamarine::IBuffer> buf);
|
||||
|
||||
struct {
|
||||
SP<HOOK_CALLBACK_FN> monitorAdded;
|
||||
SP<HOOK_CALLBACK_FN> monitorPreRender;
|
||||
CHyprSignalListener monitorAdded;
|
||||
CHyprSignalListener monitorPreRender;
|
||||
} m_hooks;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue