]> git.sur5r.net Git - i3/i3/commit
Implement switching focus across screens.
authorPeter Bui <pnutzh4x0r@gmail.com>
Sat, 6 Aug 2011 16:28:05 +0000 (12:28 -0400)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 7 Aug 2011 12:33:07 +0000 (14:33 +0200)
commita547365a8874015ae65fb94896120d7641f1b4e5
treec98f8509bcc5c8b40dfeb04c0f477c5ec55d3550
parent865c193971d7115051c49b60e46ecb2f7afac091
Implement switching focus across screens.

Modify _tree_next() so that when we reach the workspace container:

1. Find the next corresponding output (screen) using the added
get_output_next().

2. If there is another output, find the visible workspace.

3. Call workspace_show on found workspace.

4. Find the appropriate window to focus (leftmost/rightmost, etc.) using
con_descend_direction, and then focus it.

I've only tested on horizontal monitors (left/right).
include/con.h
include/randr.h
src/con.c
src/randr.c
src/tree.c