Set EWMH desktop properties on startup.

Calls ewmh_update_current_desktop on startup to set the
_NET_CURRENT_DESKTOP property. Without this change the property only
gets set after the workspaces have been manipulated. Also exclude
hidden workspaces (i.e. those starting with "__" from the workspace
index.

Adds tests for startup and workspace switching.
This commit is contained in:
Steve Jones
2014-02-01 16:09:51 +00:00
committed by Michael Stapelberg
parent 905440d6d1
commit 0e27ff3cd0
3 changed files with 81 additions and 0 deletions

View File

@ -761,6 +761,9 @@ int main(int argc, char *argv[]) {
x_set_i3_atoms();
ewmh_update_workarea();
/* Set the _NET_CURRENT_DESKTOP property. */
ewmh_update_current_desktop();
struct ev_io *xcb_watcher = scalloc(sizeof(struct ev_io));
struct ev_io *xkb = scalloc(sizeof(struct ev_io));
xcb_check = scalloc(sizeof(struct ev_check));