mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-02 03:45:58 +01:00
wlr_scene: Only send frame done events for visible buffers
This commit is contained in:
parent
6d62300324
commit
d16d341381
1 changed files with 3 additions and 1 deletions
|
@ -642,7 +642,9 @@ void wlr_scene_buffer_set_transform(struct wlr_scene_buffer *scene_buffer,
|
||||||
|
|
||||||
void wlr_scene_buffer_send_frame_done(struct wlr_scene_buffer *scene_buffer,
|
void wlr_scene_buffer_send_frame_done(struct wlr_scene_buffer *scene_buffer,
|
||||||
struct timespec *now) {
|
struct timespec *now) {
|
||||||
|
if (pixman_region32_not_empty(&scene_buffer->node.visible)) {
|
||||||
wlr_signal_emit_safe(&scene_buffer->events.frame_done, now);
|
wlr_signal_emit_safe(&scene_buffer->events.frame_done, now);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct wlr_texture *scene_buffer_get_texture(
|
static struct wlr_texture *scene_buffer_get_texture(
|
||||||
|
|
Loading…
Reference in a new issue