aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/input/accel_profile.c
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-08-07 23:27:56 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-08-07 23:32:25 +1000
commit50f3a7ff5cf2f30b6644dc578723b60ab3f0d26d (patch)
tree00955b8114f5c960f27e2065a7e8478953ec441b /sway/commands/input/accel_profile.c
parent1818c58e4060624ccb9102f88dd977702b688008 (diff)
Fix infinite loop when focusing sticky containers via workspace command
In a multi-output setup, if a sticky container is on one output and focus is on the other output, and you run (eg) `workspace 1` to focus the workspace containing the sticky container, an infinite loop would occur. It would loop infinitely because it would remove the sticky container from the workspace, add it back to the same workspace, and then decrement the iterator variable. The fix just wraps the loop in a workspace comparison.
Diffstat (limited to 'sway/commands/input/accel_profile.c')
0 files changed, 0 insertions, 0 deletions