diff options
-rw-r--r-- | krandr/libkrandr.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/krandr/libkrandr.cc b/krandr/libkrandr.cc index 90049c13e..956328872 100644 --- a/krandr/libkrandr.cc +++ b/krandr/libkrandr.cc @@ -841,6 +841,9 @@ void KRandrSimpleAPI::applySystemwideDisplayGamma(TQPtrList<SingleScreenData> sc screendata = screenInfoArray.at(i); output_info = randr_screen_info->outputs[i]->info; CrtcInfo *current_crtc = randr_screen_info->outputs[i]->cur_crtc; + if (!current_crtc) { + continue; + } // vvvvvvvvv This chunk of code is borrowed from xrandr vvvvvvvvvv int size = XRRGetCrtcGammaSize(randr_display, current_crtc->id); if (!size) { |