Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
spectrwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2a8cbd9
)
apply XftDraw to search_win
author
David Hill
<dhill@conformal.com>
Thu, 19 Jul 2012 23:19:03 +0000
(19:19 -0400)
committer
Reginald Kennedy
<rk@rejii.com>
Fri, 20 Jul 2012 22:00:03 +0000
(06:00 +0800)
spectrwm.c
patch
|
blob
|
history
diff --git
a/spectrwm.c
b/spectrwm.c
index
e976c4b
..
e682774
100644
(file)
--- a/
spectrwm.c
+++ b/
spectrwm.c
@@
-3890,6
+3890,7
@@
search_win(struct swm_region *r, union arg *args)
char s[8];
FILE *lfile;
size_t len;
char s[8];
FILE *lfile;
size_t len;
+ XftDraw *draw;
XGlyphInfo info;
DNPRINTF(SWM_D_MISC, "search_win\n");
XGlyphInfo info;
DNPRINTF(SWM_D_MISC, "search_win\n");
@@
-3943,7
+3944,15
@@
search_win(struct swm_region *r, union arg *args)
XCB_GC_BACKGROUND | XCB_GC_GRAPHICS_EXPOSURES, gcv);
map_window_raised(w);
XCB_GC_BACKGROUND | XCB_GC_GRAPHICS_EXPOSURES, gcv);
map_window_raised(w);
- xcb_image_text_8(conn, len, w, sw->gc, 2, bar_font->height, s);
+ draw = XftDrawCreate(display, w,
+ DefaultVisual(display, r->s->idx),
+ DefaultColormap(display, r->s->idx));
+
+ XftDrawStringUtf8(draw, &bar_font_color, bar_font, 2,
+ (HEIGHT(r->bar) + bar_font->height) / 2 - bar_font->descent,
+ (FcChar8 *)s, len);
+
+ XftDrawDestroy(draw);
DNPRINTF(SWM_D_MISC, "search_win: mapped window: 0x%x\n", w);
DNPRINTF(SWM_D_MISC, "search_win: mapped window: 0x%x\n", w);