-
-
Notifications
You must be signed in to change notification settings - Fork 589
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
renderer: fix handling of root pixmap changes
I thought to myself, "I will add this later", then proceeded to forget about this... The `root_damaged` flag in `struct session` I added in anticipation for this is actually not enough. Imagine this: frame 0 -> frame 1 -> frame 2 (root changed) -> frame 3 frame 2 will be rendered with the `root_damaged` flag set, all good. But `frame 3` wouldn't, and if it has buffer age 2, i.e. it's rendered on top of the base of `frame 1`, then the result will be wrong because frame 1 and 3 has different root background. So instead I added a `root_image_generation` that is incremented every time the root image changes. Fixes #1247 Signed-off-by: Yuxuan Shui <[email protected]>
- Loading branch information
Showing
5 changed files
with
13 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters