aboutsummaryrefslogtreecommitdiff
path: root/src/Screen.hh
diff options
context:
space:
mode:
authorMathias Gumz <akira@fluxbox.org>2015-01-16 07:36:49 (GMT)
committerMathias Gumz <akira@fluxbox.org>2015-01-16 07:36:49 (GMT)
commitb4958780650cfab97d4dc694a34c0c77bf99b26d (patch)
tree0982d91e368b1e9f020b606cb0f2b205cd619c4d /src/Screen.hh
parentbd9afcafb93382b5b7f32c222594699214581596 (diff)
downloadfluxbox-b4958780650cfab97d4dc694a34c0c77bf99b26d.zip
fluxbox-b4958780650cfab97d4dc694a34c0c77bf99b26d.tar.bz2
Reduce number of allocations for menu creation
Every time either the Slit menu or the Toolbar menu were added to the root menu, the whole root menu was (re)created from scratch. Now we create and remove only the menus needed. Side effect: the position of these menus is now at the end of the root menu and not somewhere in between. If users complaint, I' ll think about it.
Diffstat (limited to 'src/Screen.hh')
-rw-r--r--src/Screen.hh4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/Screen.hh b/src/Screen.hh
index 5734d86..dcdcb06 100644
--- a/src/Screen.hh
+++ b/src/Screen.hh
@@ -501,10 +501,6 @@ private:
501 501
502 ExtraMenus m_extramenus; 502 ExtraMenus m_extramenus;
503 503
504 typedef std::list<std::pair<FbTk::FbString, FbTk::Menu *> > Configmenus;
505
506
507 Configmenus m_configmenu_list;
508 Icons m_icon_list; 504 Icons m_icon_list;
509 505
510 std::auto_ptr<Slit> m_slit; 506 std::auto_ptr<Slit> m_slit;