]> git.sur5r.net Git - i3/i3/commit
create_workspace_on_output: send workspace init event 3632/head
authorOrestis Floros <orestisf1993@gmail.com>
Fri, 22 Feb 2019 17:41:30 +0000 (19:41 +0200)
committerOrestis Floros <orestisf1993@gmail.com>
Sat, 23 Feb 2019 10:00:55 +0000 (12:00 +0200)
commit098b0e69763080bad408ed73592b26eecdf1f93e
tree2843f7fae75b0007b509ef17c4228dd8f5201a62
parent2d6e09a66ad9b3e01588c515ae66476de8903754
create_workspace_on_output: send workspace init event

Fixes #3595
Like the issue mentions:
> instead of the newly created workspace (not referenced by variable
> here) the `"init"` event is fired with the current workspace (`ws`).

Plus, there was another issue where duplicate workspace init events
where being sent because of workspace_get().

304-ipc-workspace-init.t: Subtest "move workspace to output" fails with
current next.

Fixes #3631
No event was being sent here:
https://github.com/i3/i3/blob/2d6e09a66ad9b3e01588c515ae66476de8903754/src/randr.c#L487

533-randr15.t: I confirmed that SKIP still works if the xrandr command
fails.
Added test fails with current next.
src/workspace.c
testcases/t/304-ipc-workspace-init.t [new file with mode: 0644]
testcases/t/533-randr15.t