Bug 59795 - kwin crashes on xrandr update on NX
Summary: kwin crashes on xrandr update on NX
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Lib/XrandR (show other bugs)
Version: unspecified
Hardware: Other Linux (All)
: medium normal
Assignee: Keith Packard
QA Contact: Xorg Project Team
URL: https://bugs.launchpad.net/ubuntu/+so...
Whiteboard:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2013-01-24 10:15 UTC by Ritesh Khadgaray
Modified: 2013-08-27 13:15 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
proposed patch (611 bytes, text/plain)
2013-01-24 10:15 UTC, Ritesh Khadgaray
no flags Details

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.