all repos — fluxbox @ 462286b46cac80a945fe988605ece05bd037c883

custom fork of the fluxbox windowmanager

listen to workspace name sig
fluxgen fluxgen
commit

462286b46cac80a945fe988605ece05bd037c883

parent

bb374e2ccab6274176c4104e14681bf9146d769a

1 files changed, 4 insertions(+), 1 deletions(-)

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

@@ -20,7 +20,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: WorkspaceNameTool.cc,v 1.4 2003/08/13 10:19:38 fluxgen Exp $ +// $Id: WorkspaceNameTool.cc,v 1.5 2003/08/26 23:20:07 fluxgen Exp $ #include "WorkspaceNameTool.hh"

@@ -42,6 +42,7 @@ m_button.setGC(m_theme.textGC());

m_button.setText(m_screen.currentWorkspace()->name()); // setup signals + screen.workspaceNamesSig().attach(this); screen.currentWorkspaceSig().attach(this); theme.reconfigSig().attach(this);

@@ -69,6 +70,8 @@ }

void WorkspaceNameTool::update(FbTk::Subject *subj) { m_button.setText(m_screen.currentWorkspace()->name()); + if (m_button.width() != width()) + resize(width(), height()); renderTheme(); }