Implement EWMH number of desktops property

_NET_NUMBER_OF_DESKTOPS:

> This property SHOULD be set and updated by the Window Manager to
> indicate the number of virtual desktops.

We interpret this property as the number of noninternal workspaces.
This commit is contained in:
Tony Crisci
2014-06-16 02:50:47 -04:00
committed by Michael Stapelberg
parent 4c06e7a573
commit b47f480728
5 changed files with 33 additions and 2 deletions

View File

@ -765,8 +765,9 @@ int main(int argc, char *argv[]) {
x_set_i3_atoms();
ewmh_update_workarea();
/* Set the _NET_CURRENT_DESKTOP property. */
/* Set the ewmh desktop properties. */
ewmh_update_current_desktop();
ewmh_update_number_of_desktops();
struct ev_io *xcb_watcher = scalloc(sizeof(struct ev_io));
struct ev_io *xkb = scalloc(sizeof(struct ev_io));