mirror of
https://github.com/labwc/labwc.git
synced 2026-03-09 05:33:53 -04:00
scene-helpers: use wlr_scene_output_needs_frame
This commit is contained in:
parent
5a50a02ba3
commit
ba604e3a8c
1 changed files with 1 additions and 4 deletions
|
|
@ -85,10 +85,7 @@ lab_wlr_scene_output_commit(struct wlr_scene_output *scene_output,
|
||||||
* rendering on every output commit and overloads CPU.
|
* rendering on every output commit and overloads CPU.
|
||||||
* We also need to verify the necessity of wants_magnification.
|
* We also need to verify the necessity of wants_magnification.
|
||||||
*/
|
*/
|
||||||
if (!wlr_output->needs_frame
|
if (!wlr_scene_output_needs_frame(scene_output) && !wants_magnification) {
|
||||||
&& !pixman_region32_not_empty(
|
|
||||||
&scene_output->WLR_PRIVATE.pending_commit_damage)
|
|
||||||
&& !wants_magnification) {
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue