screencopy: don't send frames on commits w/o a buffer

This commit is contained in:
vaxerski 2023-07-12 00:30:42 +02:00
parent 9c9f56743e
commit 7a7e3ee6d9

View file

@ -217,6 +217,7 @@ void Events::listener_monitorCommit(void* owner, void* data) {
const auto E = (wlr_output_event_commit*)data;
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))