From bd1221a5b26826fb102ea5e99c169ea404415b07 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sat, 13 May 2006 19:29:55 +0000 Subject: fixed some redraw issues with the title, thanks _markt --- src/WinClient.cc | 2 ++ src/Window.cc | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/WinClient.cc b/src/WinClient.cc index 891dc26..82027da 100644 --- a/src/WinClient.cc +++ b/src/WinClient.cc @@ -353,6 +353,8 @@ void WinClient::updateTitle() { void WinClient::setTitle(FbTk::FbString &title) { m_title = title; m_title_override = true; + if (m_win) + m_win->updateTitleFromClient(*this); } void WinClient::setIconTitle(FbTk::FbString &icon_title) { diff --git a/src/Window.cc b/src/Window.cc index 60ecaca..cbcb1f7 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -1158,6 +1158,8 @@ void FluxboxWindow::updateTitleFromClient(WinClient &client) { m_labelbuttons[&client]->setText(client.title()); if (&client == m_client) frame().setFocusTitle(client.title()); + + titleSig().notify(); } } @@ -2515,7 +2517,6 @@ void FluxboxWindow::propertyNotifyEvent(WinClient &client, Atom atom) { client.updateIconTitle(); case XA_WM_NAME: updateTitleFromClient(client); - titleSig().notify(); break; case XA_WM_NORMAL_HINTS: { -- cgit v0.11.2