all repos — fluxbox @ 4e435cb3db6a4a59b137f49fd01cc1d394b6b68d

custom fork of the fluxbox windowmanager

listen to title change
fluxgen fluxgen
commit

4e435cb3db6a4a59b137f49fd01cc1d394b6b68d

parent

e9be87766bd5e3353217d49037f971d43e548d3a

1 files changed, 9 insertions(+), 2 deletions(-)

jump to
M src/IconbarTool.ccsrc/IconbarTool.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: IconbarTool.cc,v 1.19 2003/12/07 16:39:43 fluxgen Exp $ +// $Id: IconbarTool.cc,v 1.20 2003/12/07 17:51:02 fluxgen Exp $ #include "IconbarTool.hh"

@@ -348,6 +348,10 @@ renderTheme();

} } return; + + } else if (subj == &(winsubj->win().titleSig())) { + renderWindow(winsubj->win()); + return; } else { // signal not handled return;

@@ -517,11 +521,13 @@ // did we find it?

if (it == m_icon_list.end()) return; + // detach from all signals win.focusSig().detach(this); win.dieSig().detach(this); win.workspaceSig().detach(this); win.stateSig().detach(this); - + win.titleSig().detach(this); + // remove from list and render theme again IconButton *button = *it;

@@ -548,6 +554,7 @@ win.focusSig().attach(this);

win.dieSig().attach(this); win.workspaceSig().attach(this); win.stateSig().attach(this); + win.titleSig().attach(this); } void IconbarTool::updateIcons() {