aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/events/Monitors.cpp
diff options
context:
space:
mode:
authorVaxry <[email protected]>2023-02-19 20:54:53 +0000
committerGitHub <[email protected]>2023-02-19 20:54:53 +0000
commit1b56cc4e99c391a94fc05a24e1f71c8e425168f1 (patch)
tree110cf0d60d9f01bcbcf3624458afa5ededb5fe8a /src/events/Monitors.cpp
parent6e16627cbcb5d4712195c97e106f2198076c8aff (diff)
downloadHyprland-1b56cc4e99c391a94fc05a24e1f71c8e425168f1.tar.gz
Hyprland-1b56cc4e99c391a94fc05a24e1f71c8e425168f1.zip
Added an Event Hook System (#1578)
* added an eventHookSystem * Add all socket2 events to hooks
Diffstat (limited to 'src/events/Monitors.cpp')
-rw-r--r--src/events/Monitors.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/events/Monitors.cpp b/src/events/Monitors.cpp
index bbc86bee..799669a1 100644
--- a/src/events/Monitors.cpp
+++ b/src/events/Monitors.cpp
@@ -177,7 +177,7 @@ void Events::listener_monitorFrame(void* owner, void* data) {
}
}
- g_pProtocolManager->m_pToplevelExportProtocolManager->onMonitorRender(PMONITOR); // dispatch any toplevel sharing
+ EMIT_HOOK_EVENT("preRender", PMONITOR);
timespec now;
clock_gettime(CLOCK_MONOTONIC, &now);
@@ -192,8 +192,6 @@ void Events::listener_monitorFrame(void* owner, void* data) {
return;
}
- g_pHyprOpenGL->preRender(PMONITOR);
-
if (!wlr_output_damage_attach_render(PMONITOR->damage, &hasChanged, &damage)) {
Debug::log(ERR, "Couldn't attach render to display %s ???", PMONITOR->szName.c_str());
return;