aboutsummaryrefslogtreecommitdiffstats
path: root/calmwm.c
diff options
context:
space:
mode:
authoroga2009-12-07 23:19:51 +0000
committeroga2009-12-07 23:19:51 +0000
commit0b0dd2e0d919b5b7aeede0dfc2c20b1c9147753d (patch)
treebb393f746141cfd1dca20eb8725df314e0294659 /calmwm.c
parentff7157bb69ba801513b0ee6af1db2cde51ac62aa (diff)
downloadcwm-0b0dd2e0d919b5b7aeede0dfc2c20b1c9147753d.tar.gz
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@
Diffstat (limited to '')
-rw-r--r--calmwm.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/calmwm.c b/calmwm.c
index 7431a89..419b960 100644
--- a/calmwm.c
+++ b/calmwm.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: calmwm.c,v 1.44 2009/12/07 21:20:52 okan Exp $
+ * $Id: calmwm.c,v 1.45 2009/12/07 23:19:51 oga Exp $
*/
#include "headers.h"
@@ -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. */