all repos — fluxbox @ e953b30d9a12841cc0d6ed687410866465fdf45c

custom fork of the fluxbox windowmanager

fixed iconbar bug
fluxgen fluxgen
commit

e953b30d9a12841cc0d6ed687410866465fdf45c

parent

552f589c75750d4cf2896ebd86c30e4ccdc94285

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

jump to
M src/Screen.ccsrc/Screen.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: Screen.cc,v 1.24 2002/02/17 18:56:14 fluxgen Exp $ +// $Id: Screen.cc,v 1.25 2002/02/17 19:19:05 fluxgen Exp $ // stupid macros needed to access some functions in version 2 of the GNU C // library

@@ -702,9 +702,18 @@

void BScreen::removeIcon(FluxboxWindow *w) { if (! w) return; - - std::remove(iconList.begin(), iconList.end(), w); - + { + Icons::iterator it = iconList.begin(); + Icons::iterator it_end = iconList.end(); + for (; it != it_end; ++it) { + if (*it == w) { + iconList.erase(it); + break; + } + } + } + //std::remove(iconList.begin(), iconList.end(), w); + iconmenu->remove(w->getWindowNumber()); iconmenu->update(); toolbar->delIcon(w);