aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Remember.cc8
-rw-r--r--src/Screen.cc4
2 files changed, 7 insertions, 5 deletions
diff --git a/src/Remember.cc b/src/Remember.cc
index cbd8f59..27c604a 100644
--- a/src/Remember.cc
+++ b/src/Remember.cc
@@ -20,7 +20,7 @@
20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21// DEALINGS IN THE SOFTWARE. 21// DEALINGS IN THE SOFTWARE.
22 22
23// $Id: Remember.cc,v 1.9 2003/04/27 15:53:53 rathnor Exp $ 23// $Id: Remember.cc,v 1.10 2003/04/28 12:58:08 rathnor Exp $
24 24
25#include "Remember.hh" 25#include "Remember.hh"
26#include "StringUtil.hh" 26#include "StringUtil.hh"
@@ -545,12 +545,14 @@ void Remember::setupWindow(FluxboxWindow &win) {
545 545
546 // we don't touch the window if it is a transient 546 // we don't touch the window if it is a transient
547 // of something else 547 // of something else
548 int menupos = win.getWindowmenu().numberOfItems()-2;
549 if (menupos < -1) menupos = -1;
548 if (winclient.transientFor()) { 550 if (winclient.transientFor()) {
549 // still put something in the menu so people don't get confused 551 // still put something in the menu so people don't get confused
550 // so, we add a disabled item... 552 // so, we add a disabled item...
551 FbTk::MenuItem *item = new FbTk::MenuItem("Remember..."); 553 FbTk::MenuItem *item = new FbTk::MenuItem("Remember...");
552 item->setEnabled(false); 554 item->setEnabled(false);
553 win.getWindowmenu().insert(item, win.getWindowmenu().numberOfItems()-2); 555 win.getWindowmenu().insert(item, menupos);
554 win.getWindowmenu().update(); 556 win.getWindowmenu().update();
555 return; 557 return;
556 } 558 }
@@ -560,7 +562,7 @@ void Remember::setupWindow(FluxboxWindow &win) {
560 // TODO: nls 562 // TODO: nls
561 win.getWindowmenu().insert("Remember...", 563 win.getWindowmenu().insert("Remember...",
562 createRememberMenu(*this, win), 564 createRememberMenu(*this, win),
563 win.getWindowmenu().numberOfItems()-2); 565 menupos);
564 win.getWindowmenu().update(); 566 win.getWindowmenu().update();
565 567
566 Application *app = find(winclient); 568 Application *app = find(winclient);
diff --git a/src/Screen.cc b/src/Screen.cc
index 00615e6..4c9c93e 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Screen.cc,v 1.140 2003/04/28 00:36:50 fluxgen Exp $ 25// $Id: Screen.cc,v 1.141 2003/04/28 12:58:08 rathnor Exp $
26 26
27 27
28#include "Screen.hh" 28#include "Screen.hh"
@@ -1291,8 +1291,8 @@ FluxboxWindow *BScreen::createWindow(WinClient &client) {
1291 // WinClient already exists). 1291 // WinClient already exists).
1292 1292
1293 Fluxbox::instance()->saveWindowSearch(client.window(), win); 1293 Fluxbox::instance()->saveWindowSearch(client.window(), win);
1294 Fluxbox::instance()->attachSignals(*win);
1295 setupWindowActions(*win); 1294 setupWindowActions(*win);
1295 Fluxbox::instance()->attachSignals(*win);
1296 if (win->getWorkspaceNumber() == getCurrentWorkspaceID() || win->isStuck()) { 1296 if (win->getWorkspaceNumber() == getCurrentWorkspaceID() || win->isStuck()) {
1297 win->show(); 1297 win->show();
1298 } 1298 }