]> git.sur5r.net Git - i3/i3/commit
Make get_output_next() work with non-aligned RandR setups (+test) (Thanks Feh, swh...
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 22 Sep 2012 14:49:37 +0000 (16:49 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 22 Sep 2012 14:54:59 +0000 (16:54 +0200)
commit19883108a9973bd1dfef15600e8fd7b1f55a7ca9
tree3ce4994c5994039ca0f482e5de772410968d6f5f
parent89ca48be20c4d9fb386e2bcdfa38efdcdeab9d83
Make get_output_next() work with non-aligned RandR setups (+test) (Thanks Feh, swh, Moritz)

A good visualization of the new algorithm is this:

           +--------+
           |        |
+--------+=|   S1   |========================
|        | |        |
|   S0   | +--------+
|        |         +--------+
+--------+=========|        |================
                   |   S2   | +--------+
                   |        | |        |
                   +--------+ |   S3   |
                              |        |
                              +--------+

When focus is on S0, 'focus output right' will first match S1 (the
closest output which overlaps in the highlighted area), then S2, but not
S3 (since S3 does not overlap into the highlighted area).

fixes #669
fixes #771
include/randr.h
src/commands.c
src/randr.c
src/tree.c
testcases/t/506-focus-right.t [new file with mode: 0644]