aboutsummaryrefslogtreecommitdiffstats
path: root/calmwm.c
diff options
context:
space:
mode:
authoroga2009-12-10 23:14:58 +0000
committeroga2009-12-10 23:14:58 +0000
commit067d8c9f41a0c6d9cd87c31432b56057e0da2c5d (patch)
tree1a34696a62fbf4f3c12b8a4bdcdc953f71fdb8b1 /calmwm.c
parent14ac3391c5d071a67de062f4857280212e12afdb (diff)
downloadcwm-067d8c9f41a0c6d9cd87c31432b56057e0da2c5d.tar.gz
Implement _NET_CURRENT_DESKTOP, _NET_DESKTOP_VIEWPORT and
_NET_DESKTOP_GEOMETRY. ok okan@
Diffstat (limited to 'calmwm.c')
-rw-r--r--calmwm.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/calmwm.c b/calmwm.c
index 63486df..234b284 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.47 2009/12/10 17:16:51 oga Exp $
+ * $Id: calmwm.c,v 1.48 2009/12/10 23:14:58 oga Exp $
*/
#include "headers.h"
@@ -143,12 +143,12 @@ x_setupscreen(struct screen_ctx *sc, u_int which)
XWindowAttributes winattr;
XSetWindowAttributes rootattr;
int fake;
- u_int ndesks = CALMWM_NGROUPS, nwins, i;
-
+ u_int nwins, i;
sc->which = which;
sc->rootwin = RootWindow(X_Dpy, sc->which);
- sc->xmax = DisplayWidth(X_Dpy, sc->which);
- sc->ymax = DisplayHeight(X_Dpy, sc->which);
+
+ screen_update_geometry(sc, DisplayWidth(X_Dpy, sc->which),
+ DisplayHeight(X_Dpy, sc->which));
conf_color(&Conf, sc);
@@ -161,13 +161,6 @@ 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. */