fix the other 50% of xrandr cases; reported by sthen@

"commit that" oga@, ok sthen@
This commit is contained in:
okan
2009-05-01 17:50:20 +00:00
parent cc68490fe1
commit 655c33c489

View File

@@ -358,16 +358,18 @@ void
xev_handle_randr(struct xevent *xev, XEvent *ee) xev_handle_randr(struct xevent *xev, XEvent *ee)
{ {
XRRScreenChangeNotifyEvent *rev = (XRRScreenChangeNotifyEvent *)ee; XRRScreenChangeNotifyEvent *rev = (XRRScreenChangeNotifyEvent *)ee;
struct client_ctx *cc;
struct screen_ctx *sc; struct screen_ctx *sc;
int i;
if ((cc = client_find(rev->window)) != NULL) { i = XRRRootToScreen(X_Dpy, rev->root);
TAILQ_FOREACH(sc, &Screenq, entry) {
if (sc->which == (u_int)i) {
XRRUpdateConfiguration(ee); XRRUpdateConfiguration(ee);
sc = CCTOSC(cc);
sc->xmax = rev->width; sc->xmax = rev->width;
sc->ymax = rev->height; sc->ymax = rev->height;
screen_init_xinerama(sc); screen_init_xinerama(sc);
} }
}
} }
/* /*