Comment 50 for bug 985202

Revision history for this message
In , Ritesh Khadgaray (khadgaray) wrote :

Created attachment 73555
proposed patch

kwin crashes on xrandr event .

from src/Xrandr.c
    switch (event->type - info->codes->first_event) {
    case RRScreenChangeNotify:
        scevent = (XRRScreenChangeNotifyEvent *) event;
        snum = XRRRootToScreen(dpy,
                               ((XRRScreenChangeNotifyEvent *) event)->root);
<--- snum is returned as -1 here on nx server
        if (scevent->rotation & (RR_Rotate_90 | RR_Rotate_270)) {
                dpy->screens[snum].width = scevent->height;

reference:
https://bugs.launchpad.net/ubuntu/+source/libxfixes/+bug/985202