mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
fix the other 50% of xrandr cases; reported by sthen@
"commit that" oga@, ok sthen@
This commit is contained in:
parent
cc68490fe1
commit
655c33c489
16
xevents.c
16
xevents.c
@ -358,15 +358,17 @@ 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);
|
||||||
XRRUpdateConfiguration(ee);
|
TAILQ_FOREACH(sc, &Screenq, entry) {
|
||||||
sc = CCTOSC(cc);
|
if (sc->which == (u_int)i) {
|
||||||
sc->xmax = rev->width;
|
XRRUpdateConfiguration(ee);
|
||||||
sc->ymax = rev->height;
|
sc->xmax = rev->width;
|
||||||
screen_init_xinerama(sc);
|
sc->ymax = rev->height;
|
||||||
|
screen_init_xinerama(sc);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user