mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-02 03:45:58 +01:00
wlr_scene: Use wlr_box_equal
This commit is contained in:
parent
bcf7a79357
commit
bea4bd43e3
1 changed files with 1 additions and 4 deletions
|
@ -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);
|
wlr_scene_node_coords(node, &node_box.x, &node_box.y);
|
||||||
scene_node_get_size(node, &node_box.width, &node_box.height);
|
scene_node_get_size(node, &node_box.width, &node_box.height);
|
||||||
|
|
||||||
if (node_box.x != box->x ||
|
if (!wlr_box_equal(box, &node_box)) {
|
||||||
node_box.y != box->y ||
|
|
||||||
node_box.width != box->width ||
|
|
||||||
node_box.height != box->height) {
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue