I've done a little digging; firstly I think it's the same as:

   https://bugs.kde.org/show_bug.cgi?id=368494   (to which I commented
      although it's closed because it went away when the reporter updated
      their X server)
and
   https://bugzilla.redhat.com/show_bug.cgi?id=1477592
and possibly
   https://bugzilla.redhat.com/show_bug.cgi?id=1406752

I added a little debug to libkf5screen
#0  XRandRScreen::toKScreenScreen (this=0x559dd8b68980) at 
./backends/xrandr/xrandrscreen.cpp:68
        screenResources = {d = 0x0}
        kscreenScreen = {value = 0x559dd8b78a70, d = 0x559dd8b78b90}
#1  0x00007fe0e9b18aba in XRandRConfig::toKScreenConfig (this=<optimized out>) 
at ./backends/xrandr/xrandrconfig.cpp:117
        config = {value = 0x559dd8b7ea80, d = 0x559dd8b7eb30}
        features = {i = 3}
        kscreenOutputs = {d = 0x559dd8b74bb0}
#2  0x00007fe0e9b14c14 in XRandR::config (this=<optimized out>) at 
./backends/xrandr/xrandr.cpp:205
No locals.
#3  0x0000559dd6d7fac6 in BackendDBusWrapper::setConfig (this=0x559dd8b69c10, 
configMap=...)
    at ./src/backendlauncher/backenddbuswrapper.cpp:87
        config = {value = 0x559dd8b778c0, d = 0x559dd8b77be0}
        obj = {d = 0x559dd8b7ea80, o = 0x559dd8b7eb30}
#4  0x0000559dd6d815ef in BackendAdaptor::setConfig (in0=..., this=<optimized 
out>)
    at ./obj-x86_64-linux-gnu/src/backendlauncher/backendadaptor.cpp:51
No locals.

and:
KScreen::ScreenPtr XRandRScreen::toKScreenScreen() const
{
    KScreen::ScreenPtr kscreenScreen(new KScreen::Screen);
    kscreenScreen->setId(m_id);
    kscreenScreen->setMaxSize(m_maxSize);
    kscreenScreen->setMinSize(m_minSize);
    kscreenScreen->setCurrentSize(m_currentSize);

    XCB::ScopedPointer<xcb_randr_get_screen_resources_reply_t> 
screenResources(XRandR::screenResources());
    kscreenScreen->setMaxActiveOutputsCount(screenResources->num_crtcs);

    return kscreenScreen;
}

the problem is the screenResources.d is NULL
I don't know the sctructure of the KDE code to know where the right place
is to fix this.

Dave

-- 
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\        dave @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/

Reply via email to