aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/events
diff options
context:
space:
mode:
authorIkalco <[email protected]>2024-07-27 10:02:02 -0500
committerGitHub <[email protected]>2024-07-27 16:02:02 +0100
commitec672b1ab95e341a0dcb6679592ae4e5eea9b1cf (patch)
tree40541dc24365a55b4bc36bf2ecf9c6bf4767c708 /src/events
parent963816b9a6524a99a6716fa1aa30b2c4f369d2f0 (diff)
downloadHyprland-ec672b1ab95e341a0dcb6679592ae4e5eea9b1cf.tar.gz
Hyprland-ec672b1ab95e341a0dcb6679592ae4e5eea9b1cf.zip
protocols: move screencopy and toplevel export to hyprwayland-scanner (#7065)
* move screencopy and toplevel export to hyprwayland-scanner * oops
Diffstat (limited to 'src/events')
-rw-r--r--src/events/Monitors.cpp6
-rw-r--r--src/events/Windows.cpp3
2 files changed, 6 insertions, 3 deletions
diff --git a/src/events/Monitors.cpp b/src/events/Monitors.cpp
index 40b6f17e..b2778062 100644
--- a/src/events/Monitors.cpp
+++ b/src/events/Monitors.cpp
@@ -5,6 +5,8 @@
#include "Events.hpp"
#include "../debug/HyprCtl.hpp"
#include "../config/ConfigValue.hpp"
+#include "../protocols/Screencopy.hpp"
+#include "../protocols/ToplevelExport.hpp"
#include <aquamarine/output/Output.hpp>
// --------------------------------------------------------- //
@@ -118,8 +120,8 @@ void Events::listener_monitorCommit(void* owner, void* data) {
const auto PMONITOR = (CMonitor*)owner;
if (true) { // FIXME: E->state->committed & WLR_OUTPUT_STATE_BUFFER
- g_pProtocolManager->m_pScreencopyProtocolManager->onOutputCommit(PMONITOR);
- g_pProtocolManager->m_pToplevelExportProtocolManager->onOutputCommit(PMONITOR);
+ PROTO::screencopy->onOutputCommit(PMONITOR);
+ PROTO::toplevelExport->onOutputCommit(PMONITOR);
}
}
diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp
index a5511e17..0e1037b6 100644
--- a/src/events/Windows.cpp
+++ b/src/events/Windows.cpp
@@ -10,6 +10,7 @@
#include "../protocols/LayerShell.hpp"
#include "../protocols/XDGShell.hpp"
#include "../protocols/core/Compositor.hpp"
+#include "../protocols/ToplevelExport.hpp"
#include "../xwayland/XSurface.hpp"
#include <hyprutils/string/String.hpp>
@@ -601,7 +602,7 @@ void Events::listener_unmapWindow(void* owner, void* data) {
g_pEventManager->postEvent(SHyprIPCEvent{"closewindow", std::format("{:x}", PWINDOW)});
EMIT_HOOK_EVENT("closeWindow", PWINDOW);
- g_pProtocolManager->m_pToplevelExportProtocolManager->onWindowUnmap(PWINDOW);
+ PROTO::toplevelExport->onWindowUnmap(PWINDOW);
if (PWINDOW->m_bIsFullscreen)
g_pCompositor->setWindowFullscreen(PWINDOW, false, FULLSCREEN_FULL);