mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 09:49:47 +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,7 +217,8 @@ void Events::listener_monitorCommit(void* owner, void* data) {
|
||||||
|
|
||||||
const auto E = (wlr_output_event_commit*)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))
|
if (E->committed & (WLR_OUTPUT_STATE_SCALE | WLR_OUTPUT_STATE_TRANSFORM | WLR_OUTPUT_STATE_MODE))
|
||||||
g_pXWaylandManager->updateXWaylandScale();
|
g_pXWaylandManager->updateXWaylandScale();
|
||||||
|
|
Loading…
Reference in a new issue