From 6be47235d47110f569155dae39dc05904a780f97 Mon Sep 17 00:00:00 2001 From: krypt-n Date: Thu, 9 Oct 2014 22:01:23 +0200 Subject: [PATCH] Fixes multi-monitor drawing --- bar.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bar.c b/bar.c index abdd1d7..5365b0a 100644 --- a/bar.c +++ b/bar.c @@ -575,6 +575,10 @@ parse (char *text) p++; continue; } + XftDrawDestroy (xft_draw); + if (!(xft_draw = XftDrawCreate (dpy, cur_mon->pixmap, visual_ptr , colormap ))) { + fprintf(stderr, "Couldn't create xft drawable\n"); + } p++; pos_x = 0;