select the focused window in the workspace menu

This commit is contained in:
Dana Jansens 2002-07-18 06:29:38 +00:00
parent 3442c5ef1c
commit ec5ea27e53

View file

@ -44,6 +44,7 @@ extern "C" {
#include "i18n.hh" #include "i18n.hh"
#include "blackbox.hh" #include "blackbox.hh"
#include "Clientmenu.hh"
#include "Font.hh" #include "Font.hh"
#include "GCCache.hh" #include "GCCache.hh"
#include "Iconmenu.hh" #include "Iconmenu.hh"
@ -2039,6 +2040,9 @@ void BlackboxWindow::setFocusFlag(bool focus) {
if (isFocused()) if (isFocused())
blackbox->setFocusedWindow(this); blackbox->setFocusedWindow(this);
Clientmenu *menu = screen->getWorkspace(blackbox_attrib.workspace)->getMenu();
menu->setItemSelected(window_number, isFocused());
} }