diff options
Diffstat (limited to 'src-qt5/core/libLumina/LuminaRandR-X11.cpp')
-rw-r--r-- | src-qt5/core/libLumina/LuminaRandR-X11.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src-qt5/core/libLumina/LuminaRandR-X11.cpp b/src-qt5/core/libLumina/LuminaRandR-X11.cpp index 4c1d5de3..a78821db 100644 --- a/src-qt5/core/libLumina/LuminaRandR-X11.cpp +++ b/src-qt5/core/libLumina/LuminaRandR-X11.cpp @@ -62,11 +62,11 @@ inline bool loadScreenInfo(p_objects *p_obj){ xcb_randr_get_crtc_info_reply_t *cinfo = xcb_randr_get_crtc_info_reply(QX11Info::connection(), xcb_randr_get_crtc_info_unchecked(QX11Info::connection(), p_obj->crtc, QX11Info::appTime()), NULL); - if(cinfo==0){ return false; } - p_obj->geometry = QRect(cinfo->x, cinfo->y, cinfo->width, cinfo->height); - p_obj->current_mode = cinfo->mode; - - free(cinfo); //done with crtc_info + if(cinfo!=0){ + p_obj->geometry = QRect(cinfo->x, cinfo->y, cinfo->width, cinfo->height); + p_obj->current_mode = cinfo->mode; + free(cinfo); //done with crtc_info + } if(!p_obj->modes.isEmpty()){ //And see if this output is currently the primary output |