i3lock-color

The world's most popular non-default computer lockscreen.
Index Commits Files Refs README LICENSE
commit a5274aab9b96f84addc69fb18f2d7e6e2d39d772
parent 0da5cdb4479da47109eea9530ae941ebf11462fa
Author: BenoƮt Dardenne <benoit.dardenne@gmail.com>
Date:   Sun, 12 Apr 2020 13:18:22 +0200

Small cleanup

Diffstat:
Munlock_indicator.c | 3---
1 file changed, 0 insertions(+), 3 deletions(-)
diff --git a/unlock_indicator.c b/unlock_indicator.c
@@ -677,14 +677,12 @@ static void draw_elements(cairo_t *const ctx, DrawData const *const draw_data) {
  */
 void draw_image(uint32_t *resolution, xcb_drawable_t drawable) {
     const double scaling_factor = get_dpi_value() / 96.0;
-    xcb_pixmap_t bg_pixmap = XCB_NONE;
     int button_diameter_physical = ceil(scaling_factor * BUTTON_DIAMETER);
     DEBUG("scaling_factor is %.f, physical diameter is %d px\n",
         scaling_factor, button_diameter_physical);
 
     if (!vistype)
         vistype = get_visualtype_by_depth(32, screen);
-    bg_pixmap = create_bg_pixmap(conn, screen, resolution, color);
     /* Initialize cairo: Create one in-memory surface to render the unlock
      * indicator on, create one XCB surface to actually draw (one or more,
      * depending on the amount of screens) unlock indicators on.
@@ -1064,7 +1062,6 @@ void draw_image(uint32_t *resolution, xcb_drawable_t drawable) {
     cairo_surface_destroy(output);
     cairo_destroy(ctx);
     cairo_destroy(xcb_ctx);
-    return bg_pixmap;
 }
 
 /*