minor stuff in redrawTitle

This commit is contained in:
fluxgen 2002-04-17 06:42:04 +00:00
parent 875d63b6d9
commit d1b6fa2729

View file

@ -22,7 +22,7 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE. // DEALINGS IN THE SOFTWARE.
// $Id: Window.cc,v 1.44 2002/04/14 11:54:59 fluxgen Exp $ // $Id: Window.cc,v 1.45 2002/04/17 06:42:04 fluxgen Exp $
#include "Window.hh" #include "Window.hh"
@ -2753,14 +2753,17 @@ void FluxboxWindow::redrawLabel(void) {
else else
XSetWindowBackground(display, frame.label, frame.ulabel_pixel); XSetWindowBackground(display, frame.label, frame.ulabel_pixel);
} }
GC gc = ((focused) ? screen->getWindowStyle()->l_text_focus_gc :
screen->getWindowStyle()->l_text_unfocus_gc);
DrawUtil::DrawString(display, frame.label, gc, //no need to draw the title if we don't have any
&screen->getWindowStyle()->font, if (getTitle().size()!=0) {
client.title_text_w, frame.label_w, GC gc = ((focused) ? screen->getWindowStyle()->l_text_focus_gc :
frame.bevel_w, getTitle().c_str()); screen->getWindowStyle()->l_text_unfocus_gc);
DrawUtil::DrawString(display, frame.label, gc,
&screen->getWindowStyle()->font,
client.title_text_w, frame.label_w,
frame.bevel_w, getTitle().c_str());
}
} }