]> git.sur5r.net Git - i3/i3/commit
Use get_assigned_output for numbers
authorOrestis Floros <orestisf1993@gmail.com>
Wed, 28 Mar 2018 01:05:48 +0000 (04:05 +0300)
committerOrestis Floros <orestisf1993@gmail.com>
Wed, 27 Jun 2018 11:56:50 +0000 (14:56 +0300)
commitd525eb80aefcd596c5c40750eb9fa3570e5c55ed
tree0af0e2a6b3b1b710e89ffdb7d7634469371904b1
parent1d5b43c18f5de8e6282c4e78bb9db7988dab169d
Use get_assigned_output for numbers

This prohibits the usage of workspaces assigned to other outputs in
create_workspace_on_output.

Eg, with config:
    workspace 1 output fake-0
    workspace 2 output fake-0
and 2 screens workspace 2 would be used for the second screen even
though it is assigned to the first one.

Also introduces a test for workspace assignments that includes the case
described above and some tests that don't fail in the next branch.
src/workspace.c
testcases/t/297-assign-workspace-to-output.t [new file with mode: 0644]