aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/output/scale.c
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-08-29 08:29:11 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-08-29 08:29:11 +1000
commitb12f7be9071f085894b47950cc0e1fda2187d7e5 (patch)
treec2d50ea44c1857ec0c0132d9e73f7c32ab7fb91e /sway/commands/output/scale.c
parent602ccca1a86a6a8611a287a09feeade17bccfa7c (diff)
Don't use bitfield to test for similar transactions
When there's multiple transactions in the queue, sway can take a shortcut by checking if they all operate on the same set of containers. If they do, it can skip all but the last transaction. The way we tested for transactions which used the same containers was to exclusive-or their con IDs together, but this has proved not only to be ineffective but also has the potential to make sway crash. This patch replaces the exclusive-or with a loop and container comparison.
Diffstat (limited to 'sway/commands/output/scale.c')
0 files changed, 0 insertions, 0 deletions