all repos — fluxbox @ d1b6fa272902bd6d5f065270521ed7fcc411d093

custom fork of the fluxbox windowmanager

minor stuff in redrawTitle
fluxgen fluxgen
commit

d1b6fa272902bd6d5f065270521ed7fcc411d093

parent

875d63b6d955850b07825cc3228bc7d638f89bc5

1 files changed, 11 insertions(+), 8 deletions(-)

jump to
M src/Window.ccsrc/Window.cc

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // 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"

@@ -2753,14 +2753,17 @@ XSetWindowBackgroundPixmap(display, frame.label, frame.ulabel);

else XSetWindowBackground(display, frame.label, frame.ulabel_pixel); } - - GC gc = ((focused) ? screen->getWindowStyle()->l_text_focus_gc : - screen->getWindowStyle()->l_text_unfocus_gc); + + //no need to draw the title if we don't have any + if (getTitle().size()!=0) { + GC gc = ((focused) ? screen->getWindowStyle()->l_text_focus_gc : + 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()); + DrawUtil::DrawString(display, frame.label, gc, + &screen->getWindowStyle()->font, + client.title_text_w, frame.label_w, + frame.bevel_w, getTitle().c_str()); + } }