diff options
author | fluxgen <fluxgen> | 2002-04-17 06:42:04 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2002-04-17 06:42:04 (GMT) |
commit | d1b6fa272902bd6d5f065270521ed7fcc411d093 (patch) | |
tree | b61c67f000510858b591dc212f1fac44ef7e7140 | |
parent | 875d63b6d955850b07825cc3228bc7d638f89bc5 (diff) | |
download | fluxbox_lack-d1b6fa272902bd6d5f065270521ed7fcc411d093.zip fluxbox_lack-d1b6fa272902bd6d5f065270521ed7fcc411d093.tar.bz2 |
minor stuff in redrawTitle
-rw-r--r-- | src/Window.cc | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/Window.cc b/src/Window.cc index ac79f73..2431328 100644 --- a/src/Window.cc +++ b/src/Window.cc | |||
@@ -22,7 +22,7 @@ | |||
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: Window.cc,v 1.44 2002/04/14 11:54:59 fluxgen Exp $ | 25 | // $Id: Window.cc,v 1.45 2002/04/17 06:42:04 fluxgen Exp $ |
26 | 26 | ||
27 | #include "Window.hh" | 27 | #include "Window.hh" |
28 | 28 | ||
@@ -2753,14 +2753,17 @@ void FluxboxWindow::redrawLabel(void) { | |||
2753 | else | 2753 | else |
2754 | XSetWindowBackground(display, frame.label, frame.ulabel_pixel); | 2754 | XSetWindowBackground(display, frame.label, frame.ulabel_pixel); |
2755 | } | 2755 | } |
2756 | |||
2757 | GC gc = ((focused) ? screen->getWindowStyle()->l_text_focus_gc : | ||
2758 | screen->getWindowStyle()->l_text_unfocus_gc); | ||
2759 | 2756 | ||
2760 | DrawUtil::DrawString(display, frame.label, gc, | 2757 | //no need to draw the title if we don't have any |
2761 | &screen->getWindowStyle()->font, | 2758 | if (getTitle().size()!=0) { |
2762 | client.title_text_w, frame.label_w, | 2759 | GC gc = ((focused) ? screen->getWindowStyle()->l_text_focus_gc : |
2763 | frame.bevel_w, getTitle().c_str()); | 2760 | screen->getWindowStyle()->l_text_unfocus_gc); |
2761 | |||
2762 | DrawUtil::DrawString(display, frame.label, gc, | ||
2763 | &screen->getWindowStyle()->font, | ||
2764 | client.title_text_w, frame.label_w, | ||
2765 | frame.bevel_w, getTitle().c_str()); | ||
2766 | } | ||
2764 | } | 2767 | } |
2765 | 2768 | ||
2766 | 2769 | ||