diff options
author | Tomas Janousek <tomi@nomi.cz> | 2008-01-28 08:58:23 (GMT) |
---|---|---|
committer | Tomas Janousek <tomi@nomi.cz> | 2008-01-28 08:58:23 (GMT) |
commit | 880209a43821c8f56e4a46b2debf7a72f68658c8 (patch) | |
tree | 22f68473e939c1cf8cb838ece3943e4184ff7392 /src/Toolbar.cc | |
parent | a61b37da70e0cd1556617c56890455ef89ee1fb0 (diff) | |
parent | 5c85fcbe648b5b4581db1ca2303d5f849a63c28c (diff) | |
download | fluxbox-880209a43821c8f56e4a46b2debf7a72f68658c8.zip fluxbox-880209a43821c8f56e4a46b2debf7a72f68658c8.tar.bz2 |
Merge branch 'xinerama_randr'
Diffstat (limited to 'src/Toolbar.cc')
-rw-r--r-- | src/Toolbar.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/Toolbar.cc b/src/Toolbar.cc index 2c7bde2..00cdfee 100644 --- a/src/Toolbar.cc +++ b/src/Toolbar.cc | |||
@@ -35,10 +35,6 @@ | |||
35 | #include "Screen.hh" | 35 | #include "Screen.hh" |
36 | #include "WindowCmd.hh" | 36 | #include "WindowCmd.hh" |
37 | 37 | ||
38 | #ifdef XINERAMA | ||
39 | #include "Xinerama.hh" | ||
40 | #endif // XINERAMA | ||
41 | |||
42 | #include "Strut.hh" | 38 | #include "Strut.hh" |
43 | #include "FbTk/CommandParser.hh" | 39 | #include "FbTk/CommandParser.hh" |
44 | #include "Layer.hh" | 40 | #include "Layer.hh" |
@@ -216,6 +212,9 @@ Toolbar::Toolbar(BScreen &scrn, FbTk::XLayer &layer, size_t width): | |||
216 | m_toolbarmenu(scrn.menuTheme(), | 212 | m_toolbarmenu(scrn.menuTheme(), |
217 | scrn.imageControl(), | 213 | scrn.imageControl(), |
218 | *scrn.layerManager().getLayer(Layer::MENU)), | 214 | *scrn.layerManager().getLayer(Layer::MENU)), |
215 | #ifdef XINERAMA | ||
216 | m_xineramaheadmenu(0), | ||
217 | #endif // XINERAMA | ||
219 | m_theme(scrn.screenNumber()), | 218 | m_theme(scrn.screenNumber()), |
220 | m_tool_factory(scrn), | 219 | m_tool_factory(scrn), |
221 | m_strut(0), | 220 | m_strut(0), |
@@ -629,6 +628,10 @@ void Toolbar::update(FbTk::Subject *subj) { | |||
629 | else | 628 | else |
630 | reconfigure(); | 629 | reconfigure(); |
631 | 630 | ||
631 | #ifdef XINERAMA | ||
632 | if (subj == &m_screen.resizeSig() && m_xineramaheadmenu) | ||
633 | m_xineramaheadmenu->reloadHeads(); | ||
634 | #endif // XINERAMA | ||
632 | } | 635 | } |
633 | 636 | ||
634 | void Toolbar::setPlacement(Toolbar::Placement where) { | 637 | void Toolbar::setPlacement(Toolbar::Placement where) { |
@@ -872,6 +875,7 @@ void Toolbar::setupMenus(bool skip_new_placement) { | |||
872 | #ifdef XINERAMA | 875 | #ifdef XINERAMA |
873 | if (screen().hasXinerama()) { | 876 | if (screen().hasXinerama()) { |
874 | menu().insert(_FB_XTEXT(Menu, OnHead, "On Head...", "Title of On Head menu"), | 877 | menu().insert(_FB_XTEXT(Menu, OnHead, "On Head...", "Title of On Head menu"), |
878 | m_xineramaheadmenu = | ||
875 | new XineramaHeadMenu<Toolbar>(screen().menuTheme(), | 879 | new XineramaHeadMenu<Toolbar>(screen().menuTheme(), |
876 | screen(), | 880 | screen(), |
877 | screen().imageControl(), | 881 | screen().imageControl(), |