diff options
author | vaxerski <[email protected]> | 2023-07-12 00:30:42 +0200 |
---|---|---|
committer | vaxerski <[email protected]> | 2023-07-12 00:30:42 +0200 |
commit | 7a7e3ee6d9367761eb225c44edf110800e4afafc (patch) | |
tree | ade7cf97b12476acd7467e8959c59eb963ebdd64 /src/events/Monitors.cpp | |
parent | 9c9f56743eb450df4a67904a547ccf900fbe8fb0 (diff) | |
download | Hyprland-7a7e3ee6d9367761eb225c44edf110800e4afafc.tar.gz Hyprland-7a7e3ee6d9367761eb225c44edf110800e4afafc.zip |
screencopy: don't send frames on commits w/o a buffer
Diffstat (limited to 'src/events/Monitors.cpp')
-rw-r--r-- | src/events/Monitors.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/events/Monitors.cpp b/src/events/Monitors.cpp index 73f5a6f6..15ebf287 100644 --- a/src/events/Monitors.cpp +++ b/src/events/Monitors.cpp @@ -217,7 +217,8 @@ void Events::listener_monitorCommit(void* owner, void* data) { const auto E = (wlr_output_event_commit*)data; - g_pProtocolManager->m_pScreencopyProtocolManager->onOutputCommit(PMONITOR, E); + if (E->committed & WLR_OUTPUT_STATE_BUFFER) + g_pProtocolManager->m_pScreencopyProtocolManager->onOutputCommit(PMONITOR, E); if (E->committed & (WLR_OUTPUT_STATE_SCALE | WLR_OUTPUT_STATE_TRANSFORM | WLR_OUTPUT_STATE_MODE)) g_pXWaylandManager->updateXWaylandScale(); |