summaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-07-18 06:29:38 +0000
committerDana Jansens <danakj@orodu.net>2002-07-18 06:29:38 +0000
commitec5ea27e53fb638052e5f13b63afcb476a6eef38 (patch)
tree406364662c19666ddf4ddc1d2599d5194de3b46d /src/Window.cc
parent3442c5ef1c5653246dde585e1cf39347daf581b9 (diff)
select the focused window in the workspace menu
Diffstat (limited to 'src/Window.cc')
-rw-r--r--src/Window.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Window.cc b/src/Window.cc
index a336eaeb..4c7a31d7 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -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());
}