]> Dogcows Code - chaz/openbox/commitdiff
select the focused window in the workspace menu
authorDana Jansens <danakj@orodu.net>
Thu, 18 Jul 2002 06:29:38 +0000 (06:29 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 18 Jul 2002 06:29:38 +0000 (06:29 +0000)
src/Window.cc

index a336eaeb4e9a1511c207aa4c825a49904fb7f67f..4c7a31d76d9536751908b498a34af527875a1a84 100644 (file)
@@ -44,6 +44,7 @@ extern "C" {
 
 #include "i18n.hh"
 #include "blackbox.hh"
+#include "Clientmenu.hh"
 #include "Font.hh"
 #include "GCCache.hh"
 #include "Iconmenu.hh"
@@ -2039,6 +2040,9 @@ void BlackboxWindow::setFocusFlag(bool focus) {
 
   if (isFocused())
     blackbox->setFocusedWindow(this);
+  
+  Clientmenu *menu = screen->getWorkspace(blackbox_attrib.workspace)->getMenu();
+  menu->setItemSelected(window_number, isFocused());
 }
 
 
This page took 0.030709 seconds and 4 git commands to generate.