Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 174215 Details for
Bug 249680
x11-misc/xscreensaver-5.07 crashes with an X error on startup
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to only call XRRGetCrtcInfo() if an output's crtcs are valid
fix-randr1.2-usage.diff (text/plain), 2.29 KB, created by
Brian Tarricone
on 2008-12-04 07:00:07 UTC
(
hide
)
Description:
patch to only call XRRGetCrtcInfo() if an output's crtcs are valid
Filename:
MIME Type:
Creator:
Brian Tarricone
Created:
2008-12-04 07:00:07 UTC
Size:
2.29 KB
patch
obsolete
>--- driver/screens.c.bak 2008-12-03 22:56:43.000000000 -0800 >+++ driver/screens.c 2008-12-03 22:57:56.000000000 -0800 >@@ -407,36 +407,45 @@ > monitor *m = (monitor *) calloc (1, sizeof (monitor)); > XRROutputInfo *rroi = XRRGetOutputInfo (dpy, res, > res->outputs[k]); >- RRCrtc crtc = (rroi->crtc ? rroi->crtc : rroi->crtcs[0]); >- XRRCrtcInfo *crtci = XRRGetCrtcInfo (dpy, res, crtc); > > monitors[j] = m; > m->screen = screen; > m->id = (i * 1000) + j; > m->desc = (rroi->name ? strdup (rroi->name) : 0); >- m->x = crtci->x; >- m->y = crtci->y; > >- if (crtci->rotation & (RR_Rotate_90|RR_Rotate_270)) >+ if (rroi->connection == RR_Disconnected || >+ (rroi->crtc == 0 && rroi->ncrtc == 0)) > { >- m->width = crtci->height; >- m->height = crtci->width; >+ m->sanity = S_DISABLED; > } >+ /* #### do the same for RR_UnknownConnection? */ > else > { >- m->width = crtci->width; >- m->height = crtci->height; >+ RRCrtc crtc = (rroi->crtc ? rroi->crtc : rroi->crtcs[0]); >+ XRRCrtcInfo *crtci = XRRGetCrtcInfo (dpy, res, crtc); >+ >+ m->x = crtci->x; >+ m->y = crtci->y; >+ >+ if (crtci->rotation & (RR_Rotate_90|RR_Rotate_270)) >+ { >+ m->width = crtci->height; >+ m->height = crtci->width; >+ } >+ else >+ { >+ m->width = crtci->width; >+ m->height = crtci->height; >+ } >+ >+ XRRFreeCrtcInfo (crtci); > } > > j++; > >- if (rroi->connection == RR_Disconnected) >- m->sanity = S_DISABLED; >- /* #### do the same for RR_UnknownConnection? */ >- >- XRRFreeCrtcInfo (crtci); > XRRFreeOutputInfo (rroi); > } >+ > XRRFreeScreenResources (res); > # endif /* HAVE_RANDR_12 */ > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 249680
:
174134
|
174215
|
190015