]> git.sur5r.net Git - i3/i3/commit
Call all ewmh_update_* functions together when necessary 3697/head
authorOrestis Floros <orestisf1993@gmail.com>
Fri, 3 May 2019 12:46:38 +0000 (15:46 +0300)
committerOrestis Floros <orestisf1993@gmail.com>
Fri, 3 May 2019 13:19:11 +0000 (16:19 +0300)
commitc9efa6dffe1dfda263d5ea25079168945ec52510
treea213d2182655c8c9007c6e7978e00ff5e90b43dd
parent830465b39f60bd22bbb5053a1e664d30e03351ad
Call all ewmh_update_* functions together when necessary

The testcase is changed because it was actually incorrect. Easy to
verify because:
> _NET_CURRENT_DESKTOP
> …
> The index of the current desktop. This is always an integer between 0
> and _NET_NUMBER_OF_DESKTOPS - 1.

Fixes #3696.
Also updates the viewports.

Finally, fixes an issue with _NET_CURRENT_DESKTOP not being updated
after a workspace rename. Example:
- workspaces 1, 2, 3
- rename workspace 1 to 5
- All workspaces changed their index but _NET_CURRENT_DESKTOP was not
updated
include/ewmh.h
src/commands.c
src/ewmh.c
src/main.c
src/tree.c
src/workspace.c
testcases/t/294-update-ewmh-atoms.t