summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorShawn Betts <sabetts@gmail.com>2009-07-04 20:58:21 -0700
committerShawn Betts <sabetts@gmail.com>2009-07-04 20:58:21 -0700
commit14beabe55fa3cac03f598e138f363f1d50659564 (patch)
tree2a23a383df0a818d60593e34d7dd73f1d408658a /src/main.c
parent166021512b2e39344ff4562323d15a1e2fdea153 (diff)
downloadratpoison-14beabe55fa3cac03f598e138f363f1d50659564.zip
fix inverted text when using xftwinliststyle-row_broken
Now the inverted rectangle is drawn first and the text overtop in the bg color.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 3c05152..c7ad72f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -777,7 +777,9 @@ free_screen (rp_screen *s)
if (s->xft_font)
{
XftColorFree (dpy, DefaultVisual (dpy, s->screen_num),
- DefaultColormap (dpy, s->screen_num), &s->xft_color);
+ DefaultColormap (dpy, s->screen_num), &s->xft_fg_color);
+ XftColorFree (dpy, DefaultVisual (dpy, s->screen_num),
+ DefaultColormap (dpy, s->screen_num), &s->xft_bg_color);
XftFontClose (dpy, s->xft_font);
}
#endif
@@ -785,6 +787,7 @@ free_screen (rp_screen *s)
XFreeCursor (dpy, s->rat);
XFreeColormap (dpy, s->def_cmap);
XFreeGC (dpy, s->normal_gc);
+ XFreeGC (dpy, s->inverse_gc);
free (s->display_string);
}