diff options
Diffstat (limited to 'src/helpers/Monitor.cpp')
-rw-r--r-- | src/helpers/Monitor.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp index eb481748..a05c27e5 100644 --- a/src/helpers/Monitor.cpp +++ b/src/helpers/Monitor.cpp @@ -229,10 +229,16 @@ void CMonitor::onDisconnect() { } void CMonitor::addDamage(pixman_region32_t* rg) { + if (solitaryClient) // when there is a solitary client, we adjust to its commits. + return; + wlr_output_damage_add(damage, rg); } void CMonitor::addDamage(wlr_box* box) { + if (solitaryClient) + return; + wlr_output_damage_add_box(damage, box); } |