diff options
author | Michael Cardell Widerkrantz <mc@hack.org> | 2011-06-01 16:47:26 +0200 |
---|---|---|
committer | Michael Cardell Widerkrantz <mc@hack.org> | 2011-06-01 16:47:26 +0200 |
commit | 515b37224ae262afbad12d1f9f88bfc9d81bcabe (patch) | |
tree | a309550651ca6ecb76177b8541be7c2f4ec9442f /mcwm.c | |
parent | 6833fd3c985d38343e240f602bf327890037a97e (diff) | |
download | mcwm-515b37224ae262afbad12d1f9f88bfc9d81bcabe.zip |
Removed unused active variable.
Removed done FIXMEs.
Diffstat (limited to 'mcwm.c')
-rw-r--r-- | mcwm.c | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -131,7 +131,6 @@ struct monitor { xcb_randr_output_t id; char *name; - bool active; int16_t x; /* X and Y. */ int16_t y; uint16_t width; /* Width in pixels. */ @@ -1557,7 +1556,6 @@ void getoutputs(xcb_randr_output_t *outputs, int len, xcb_timestamp_t timestamp) xcb_randr_get_output_info_reply_t *output; struct monitor *mon; struct monitor *clonemon; - bool active = false; xcb_randr_get_output_info_cookie_t ocookie[len]; int i; @@ -1640,8 +1638,6 @@ typedef struct xcb_randr_get_crtc_info_reply_t { PDEBUG("CRTC: at %d, %d, size: %d x %d.\n", crtc->x, crtc->y, crtc->width, crtc->height); - active = true; - /* Check if it's a clone. */ clonemon = findclones(outputs[i], crtc->x, crtc->y); if (NULL != clonemon) @@ -1655,18 +1651,9 @@ typedef struct xcb_randr_get_crtc_info_reply_t { /* Do we know this monitor already? */ if (NULL == (mon = findmonitor(outputs[i]))) { - /* Not known. */ - PDEBUG("Monitor not known, adding to list.\n"); - /* Add it to the list. */ - - /* FIXME: If it is a clone, do we mark as unactive or skip it? */ - - /* How do we know if it's a clone? */ addmonitor(outputs[i], name, crtc->x, crtc->y, crtc->width, crtc->height); - - PDEBUG("Monitor added.\n"); } free(crtc); |