Comment 11 for bug 104262

Revision history for this message
Mario Limonciello (superm1) wrote : Re: [Bug 104262] Re: [apport] mythfrontend.real crashed with SIGSEGV in XRRGetScreenInfo()

Looking closer at this, it appears that we are already calling
XRRGetScreenInfo with the correct parameters for the new xrandr version:
this is libs/libmyth/DisplayResX.cpp:

static XRRScreenConfiguration *GetScreenConfig(Display*& display)
> {
> display = MythXOpenDisplay();
> if (!display)
> {
> cerr<<"DisplaResX: MythXOpenDisplay call failed"<<endl;
> return NULL;
> }
>
> X11L;
> Window root = RootWindow(display, DefaultScreen(display));
> XRRScreenConfiguration *cfg = XRRGetScreenInfo(display, root);
> if (!cfg)
> {
> if (display)
> XCloseDisplay(display);
> cerr<<"DisplaResX: Unable to XRRgetScreenInfo"<<endl;
> }
> X11U;
>
> return cfg;
> }
>
>