From 3e52976eacb826bcb6651d7e7501468dd30f0b62 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Mon, 7 Jun 2004 21:36:06 +0000 Subject: minor fix --- src/Slit.cc | 15 ++++++++------- src/Toolbar.cc | 4 ++-- src/Toolbar.hh | 5 +++-- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/src/Slit.cc b/src/Slit.cc index 4157178..ecb0142 100644 --- a/src/Slit.cc +++ b/src/Slit.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Slit.cc,v 1.95 2004/06/07 11:46:04 rathnor Exp $ +// $Id: Slit.cc,v 1.96 2004/06/07 21:36:06 fluxgen Exp $ #include "Slit.hh" @@ -247,12 +247,7 @@ Slit::Slit(BScreen &scr, FbTk::XLayer &layer, const char *filename) m_clientlist_menu(scr.menuTheme(), scr.imageControl(), *scr.layerManager().getLayer(Fluxbox::instance()->getMenuLayer())), - m_layermenu(new LayerMenu(scr.menuTheme(), - scr.imageControl(), - *scr.layerManager().getLayer(Fluxbox::instance()->getMenuLayer()), - this, - true)), - //For KDE dock applets + //For KDE dock applets m_kwm1_dockwindow(XInternAtom(FbTk::App::instance()->display(), "KWM_DOCKWINDOW", False)), //KDE v1.x m_kwm2_dockwindow(XInternAtom(FbTk::App::instance()->display(), @@ -316,6 +311,12 @@ Slit::Slit(BScreen &scr, FbTk::XLayer &layer, const char *filename) frame.window.setAlpha(*m_rc_alpha); m_layeritem.reset(new FbTk::XLayerItem(frame.window, layer)); + m_layermenu.reset(new LayerMenu(scr.menuTheme(), + scr.imageControl(), + *scr.layerManager(). + getLayer(Fluxbox::instance()->getMenuLayer()), + this, + true)); moveToLayer((*m_rc_layernum).getNum()); if (m_layermenu.get()) diff --git a/src/Toolbar.cc b/src/Toolbar.cc index 5d74b3c..fae3142 100644 --- a/src/Toolbar.cc +++ b/src/Toolbar.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Toolbar.cc,v 1.140 2004/06/07 11:46:04 rathnor Exp $ +// $Id: Toolbar.cc,v 1.141 2004/06/07 21:32:12 fluxgen Exp $ #include "Toolbar.hh" @@ -191,6 +191,7 @@ Toolbar::Toolbar(BScreen &scrn, FbTk::XLayer &layer, size_t width): frame(*this, scrn.screenNumber()), m_window_pm(0), m_screen(scrn), + m_layeritem(frame.window, layer), m_layermenu(scrn.menuTheme(), scrn.imageControl(), *scrn.layerManager().getLayer(Fluxbox::instance()->getMenuLayer()), @@ -203,7 +204,6 @@ Toolbar::Toolbar(BScreen &scrn, FbTk::XLayer &layer, size_t width): scrn.imageControl(), *scrn.layerManager().getLayer(Fluxbox::instance()->getMenuLayer())), m_theme(scrn.screenNumber()), - m_layeritem(frame.window, layer), m_tool_factory(scrn), m_strut(0), // lock rcmanager here diff --git a/src/Toolbar.hh b/src/Toolbar.hh index 2ff3a02..5a00855 100644 --- a/src/Toolbar.hh +++ b/src/Toolbar.hh @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Toolbar.hh,v 1.52 2003/12/20 19:04:45 fluxgen Exp $ +// $Id: Toolbar.hh,v 1.53 2004/06/07 21:32:11 fluxgen Exp $ #ifndef TOOLBAR_HH #define TOOLBAR_HH @@ -160,6 +160,7 @@ private: FbTk::Timer m_hide_timer; ///< timer to for auto hide toolbar + FbTk::XLayerItem m_layeritem; ///< layer item, must be declared before layermenu LayerMenu m_layermenu; FbMenu m_placementmenu, m_toolbarmenu; @@ -167,7 +168,7 @@ private: // themes ToolbarTheme m_theme; - FbTk::XLayerItem m_layeritem; + typedef std::list ItemList; ItemList m_item_list; -- cgit v0.11.2