aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Orzechowski <orzechowski.alexander@gmail.com>2022-08-15 07:37:09 -0400
committerAlexander Orzechowski <orzechowski.alexander@gmail.com>2022-08-15 07:37:09 -0400
commitbea4bd43e3a46af717f211f0a8e581a72cea7cb9 (patch)
treec18be68ae802b8caa6815f585f30f43307c27a32
parentbcf7a793575ead7a8e68401d5b5808d5337ebfe1 (diff)
wlr_scene: Use wlr_box_equal
-rw-r--r--types/scene/wlr_scene.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/types/scene/wlr_scene.c b/types/scene/wlr_scene.c
index b2e7d71a..b522f377 100644
--- a/types/scene/wlr_scene.c
+++ b/types/scene/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;
}