From ec5ea27e53fb638052e5f13b63afcb476a6eef38 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 18 Jul 2002 06:29:38 +0000 Subject: [PATCH] select the focused window in the workspace menu --- src/Window.cc | 4 ++++ 1 file changed, 4 insertions(+) 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()); } -- 2.45.2