Implement _NET_NUMBER_OF_DESKTOPS, currently this is statically 9 and
unchangable. the group code needs some cleaning up before this will be a bit less hackish. ok okan@
This commit is contained in:
9
calmwm.c
9
calmwm.c
@@ -147,7 +147,7 @@ x_setupscreen(struct screen_ctx *sc, u_int which)
|
||||
XWindowAttributes winattr;
|
||||
XSetWindowAttributes rootattr;
|
||||
int fake;
|
||||
u_int nwins, i;
|
||||
u_int ndesks = CALMWM_NGROUPS, nwins, i;
|
||||
|
||||
Curscreen = sc;
|
||||
|
||||
@@ -166,6 +166,13 @@ x_setupscreen(struct screen_ctx *sc, u_int which)
|
||||
/* Initialize menu window. */
|
||||
menu_init(sc);
|
||||
|
||||
/*
|
||||
* XXX this probably should be somewhere else, but since it's a
|
||||
* static value for now it does ok.
|
||||
*/
|
||||
XChangeProperty(X_Dpy, sc->rootwin, _NET_NUMBER_OF_DESKTOPS,
|
||||
XA_CARDINAL, 32, PropModeReplace, (unsigned char *)&ndesks, 1);
|
||||
|
||||
xu_setwmname(sc);
|
||||
|
||||
/* Deal with existing clients. */
|
||||
|
||||
Reference in New Issue
Block a user