Bug 59795

Summary: kwin crashes on xrandr update on NX
Product: xorg Reporter: Ritesh Khadgaray <khadgaray>
Component: Lib/XrandRAssignee: Keith Packard <keithp>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium Keywords: patch
Version: unspecified   
Hardware: Other   
OS: Linux (All)   
URL: https://bugs.launchpad.net/ubuntu/+source/libxfixes/+bug/985202
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
proposed patch none

Description Ritesh Khadgaray 2013-01-24 10:15:31 UTC
Created attachment 73555 [details]
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
Comment 1 Maarten Lankhorst 2013-08-27 13:15:17 UTC
Seems to be fixed by commit 4e4bbb85499cff052ce03e173b88f1083ba83f86

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.