Implement _NET_CURRENT_DESKTOP, _NET_DESKTOP_VIEWPORT and

_NET_DESKTOP_GEOMETRY.

ok okan@
This commit is contained in:
oga
2009-12-10 23:14:58 +00:00
parent 134e777cf0
commit a7c3a7cac3
6 changed files with 45 additions and 22 deletions

View File

@ -98,3 +98,14 @@ screen_find_xinerama(struct screen_ctx *sc, int x, int y)
}
return (NULL);
}
void
screen_update_geometry(struct screen_ctx *sc, int width, int height)
{
int geom[2];
sc->xmax = geom[0] = width;
sc->ymax = geom[1] = height;
XChangeProperty(X_Dpy, sc->rootwin, _NET_DESKTOP_GEOMETRY,
XA_CARDINAL, 32, PropModeReplace, (unsigned char *)geom , 2);
}