fix bug where it wouldn't add remember menu
rathnor rathnor
1 files changed,
9 insertions(+),
7 deletions(-)
jump to
M
src/Remember.cc
→
src/Remember.cc
@@ -20,7 +20,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: 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::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 @@
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) {