backend interface: prepare is optional
Also remove xrender's prepare since it overwrite part of the screen outside the damage region, causing rendering problems. Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
@ -71,7 +71,7 @@ void paint_all_new(session_t *ps, win *const t, bool ignore_damage) {
|
||||
// TODO Bind root pixmap
|
||||
|
||||
if (ps->backend_data->ops->prepare) {
|
||||
ps->backend_data->ops->prepare(ps->backend_data, ®_visible);
|
||||
ps->backend_data->ops->prepare(ps->backend_data, ®_damage);
|
||||
}
|
||||
|
||||
if (ps->root_image) {
|
||||
|
Reference in New Issue
Block a user