diff options
author | Alexander Orzechowski <[email protected]> | 2022-08-15 07:37:09 -0400 |
---|---|---|
committer | Alexander Orzechowski <[email protected]> | 2022-08-15 07:37:09 -0400 |
commit | 894e7917f0842c2d9115f352bfc141cf02879bae (patch) | |
tree | 3a024927be8abe34483ff041127988df5ff295a4 | |
parent | 8409df1445186a043c4c188eb4bc4a08fb5f69ac (diff) |
wlr_scene: Use wlr_box_equal
-rw-r--r-- | wlr_scene.c | 5 |
1 files changed, 1 insertions, 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; } |