summaryrefslogtreecommitdiff
path: root/src/events
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2023-04-12 21:40:51 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2023-04-12 21:40:51 +0100
commita22e1174ee8b61bce400265206010cd52c5bace7 (patch)
treed9fc484b058d3b22cb2e22f5c70a63dccbcf44b7 /src/events
parent985764c8db01ff8f23461ed860eaacf3d52ee813 (diff)
screencopy: implement dmabuf
Diffstat (limited to 'src/events')
-rw-r--r--src/events/Events.hpp1
-rw-r--r--src/events/Monitors.cpp8
2 files changed, 9 insertions, 0 deletions
diff --git a/src/events/Events.hpp b/src/events/Events.hpp
index d0a1df39..e0f44727 100644
--- a/src/events/Events.hpp
+++ b/src/events/Events.hpp
@@ -100,6 +100,7 @@ namespace Events {
DYNLISTENFUNC(monitorStateRequest);
DYNLISTENFUNC(monitorDamage);
DYNLISTENFUNC(monitorNeedsFrame);
+ DYNLISTENFUNC(monitorCommit);
// XWayland
LISTENER(readyXWayland);
diff --git a/src/events/Monitors.cpp b/src/events/Monitors.cpp
index fab7fc89..111076d5 100644
--- a/src/events/Monitors.cpp
+++ b/src/events/Monitors.cpp
@@ -212,3 +212,11 @@ void Events::listener_monitorNeedsFrame(void* owner, void* data) {
g_pCompositor->scheduleFrameForMonitor(PMONITOR);
}
+
+void Events::listener_monitorCommit(void* owner, void* data) {
+ const auto PMONITOR = (CMonitor*)owner;
+
+ const auto E = (wlr_output_event_commit*)data;
+
+ g_pProtocolManager->m_pScreencopyProtocolManager->onOutputCommit(PMONITOR, E);
+}