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:
committed by
Michael Stapelberg
parent
905440d6d1
commit
0e27ff3cd0
@ -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));
|
||||
|
Reference in New Issue
Block a user