From 894e7917f0842c2d9115f352bfc141cf02879bae Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Mon, 15 Aug 2022 07:37:09 -0400 Subject: wlr_scene: Use wlr_box_equal --- wlr_scene.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/wlr_scene.c b/wlr_scene.c index b2e7d71..b522f37 100644 --- a/wlr_scene.c +++ b/wlr_scene.c @@ -1429,10 +1429,7 @@ static bool scene_node_try_direct_scanout(struct wlr_scene_node *node, wlr_scene_node_coords(node, &node_box.x, &node_box.y); scene_node_get_size(node, &node_box.width, &node_box.height); - if (node_box.x != box->x || - node_box.y != box->y || - node_box.width != box->width || - node_box.height != box->height) { + if (!wlr_box_equal(box, &node_box)) { return false; } -- cgit v1.2.3