mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 08:09:49 +01:00
screencopy: don't send frames on commits w/o a buffer
This commit is contained in:
parent
9c9f56743e
commit
7a7e3ee6d9
1 changed files with 2 additions and 1 deletions
|
@ -217,6 +217,7 @@ void Events::listener_monitorCommit(void* owner, void* data) {
|
||||||
|
|
||||||
const auto E = (wlr_output_event_commit*)data;
|
const auto E = (wlr_output_event_commit*)data;
|
||||||
|
|
||||||
|
if (E->committed & WLR_OUTPUT_STATE_BUFFER)
|
||||||
g_pProtocolManager->m_pScreencopyProtocolManager->onOutputCommit(PMONITOR, E);
|
g_pProtocolManager->m_pScreencopyProtocolManager->onOutputCommit(PMONITOR, E);
|
||||||
|
|
||||||
if (E->committed & (WLR_OUTPUT_STATE_SCALE | WLR_OUTPUT_STATE_TRANSFORM | WLR_OUTPUT_STATE_MODE))
|
if (E->committed & (WLR_OUTPUT_STATE_SCALE | WLR_OUTPUT_STATE_TRANSFORM | WLR_OUTPUT_STATE_MODE))
|
||||||
|
|
Loading…
Reference in a new issue