mirror of
https://github.com/labwc/labwc.git
synced 2025-11-08 13:30:00 -05:00
chase wlroots: use WLR_PRIVATE (MR 4842)
Ref: 6006023a377868187f73d2e0922bbe952072684f
("Use WLR_PRIVATE for private fields")
This commit is contained in:
parent
2b1923c867
commit
0c2cf61895
5 changed files with 11 additions and 9 deletions
|
|
@ -58,8 +58,8 @@ scene_output_damage(struct wlr_scene_output *scene_output,
|
|||
|
||||
if (pixman_region32_not_empty(&clipped)) {
|
||||
wlr_damage_ring_add(&scene_output->damage_ring, &clipped);
|
||||
pixman_region32_union(&scene_output->pending_commit_damage,
|
||||
&scene_output->pending_commit_damage, &clipped);
|
||||
pixman_region32_union(&scene_output->WLR_PRIVATE.pending_commit_damage,
|
||||
&scene_output->WLR_PRIVATE.pending_commit_damage, &clipped);
|
||||
}
|
||||
|
||||
pixman_region32_fini(&clipped);
|
||||
|
|
@ -85,8 +85,10 @@ lab_wlr_scene_output_commit(struct wlr_scene_output *scene_output,
|
|||
* rendering on every output commit and overloads CPU.
|
||||
* We also need to verify the necessity of wants_magnification.
|
||||
*/
|
||||
if (!wlr_output->needs_frame && !pixman_region32_not_empty(
|
||||
&scene_output->pending_commit_damage) && !wants_magnification) {
|
||||
if (!wlr_output->needs_frame
|
||||
&& !pixman_region32_not_empty(
|
||||
&scene_output->WLR_PRIVATE.pending_commit_damage)
|
||||
&& !wants_magnification) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue