From b2c53bf3a1c7e03d54b78b66c8fc766262a5c752 Mon Sep 17 00:00:00 2001 From: rathnor Date: Sat, 26 Apr 2003 14:36:21 +0000 Subject: fix bug where it wouldn't add remember menu --- src/Remember.cc | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/Remember.cc b/src/Remember.cc index 05e397e..9783c17 100644 --- a/src/Remember.cc +++ b/src/Remember.cc @@ -20,7 +20,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Remember.cc,v 1.6 2003/04/26 13:47:53 rathnor Exp $ +// $Id: Remember.cc,v 1.7 2003/04/26 14:36:21 rathnor Exp $ #include "Remember.hh" #include "StringUtil.hh" @@ -537,6 +537,14 @@ void Remember::forgetAttrib(WinClient &winclient, Attribute attrib) { void Remember::setupWindow(FluxboxWindow &win) { WinClient &winclient = win.winClient(); + // add the menu, this -2 is somewhat dodgy... :-/ + // All windows get the remember menu. + // TODO: nls + win.getWindowmenu().insert("Remember...", + createRememberMenu(*this, win), + win.getWindowmenu().numberOfItems()-2); + win.getWindowmenu().update(); + // we don't touch the window if it is a transient // of something else if (winclient.transientFor()) @@ -581,12 +589,6 @@ void Remember::setupWindow(FluxboxWindow &win) { if (app->layer_remember) win.moveToLayer(app->layer); - // add the menu, this -2 is somewhat dodgy... :-/ - // TODO: nls - win.getWindowmenu().insert("Remember...", - createRememberMenu(*this, win), - win.getWindowmenu().numberOfItems()-2); - win.getWindowmenu().update(); } void Remember::updateWindowClose(FluxboxWindow &win) { -- cgit v0.11.2