diff options
| author | Scott Moynes <smoynes@nexus.carleton.ca> | 2002-10-17 00:52:03 +0000 |
|---|---|---|
| committer | Scott Moynes <smoynes@nexus.carleton.ca> | 2002-10-17 00:52:03 +0000 |
| commit | ccf6cfadf7917be62eda6b5613feca59ddc66a0f (patch) | |
| tree | 0b45b7f0f2cd2a44a5f4ae2ea07476a15a9cdf5a /src/Toolbar.cc | |
| parent | 402e229e76dfd8b4cda8b7cf1fccaec5acf7570c (diff) | |
Fix XFT redraw of text. Still needs slight work for the shadow in Basemenu
Diffstat (limited to 'src/Toolbar.cc')
| -rw-r--r-- | src/Toolbar.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Toolbar.cc b/src/Toolbar.cc index d2e2f15f..587d3fd4 100644 --- a/src/Toolbar.cc +++ b/src/Toolbar.cc @@ -581,6 +581,11 @@ void Toolbar::checkClock(bool redraw, bool date) { int pos = frame.bevel_w * 2; // this is modified by doJustify() style->doJustify(t, pos, frame.clock_w, frame.bevel_w * 4); + +#ifdef XFT + XClearWindow(display, frame.clock); +#endif // XFT + style->font->drawString(frame.clock, pos, 1, style->c_text, t); } } @@ -593,6 +598,10 @@ void Toolbar::redrawWindowLabel(bool redraw) { return; } +#ifdef XFT + redraw = true; +#endif // XFT + if (redraw) XClearWindow(display, frame.window_label); @@ -610,6 +619,10 @@ void Toolbar::redrawWindowLabel(bool redraw) { void Toolbar::redrawWorkspaceLabel(bool redraw) { const string& name = screen->getCurrentWorkspace()->getName(); +#ifdef XFT + redraw = true; +#endif // XFT + if (redraw) XClearWindow(display, frame.workspace_label); |
