From: Dana Jansens Date: Thu, 18 Jul 2002 06:29:38 +0000 (+0000) Subject: select the focused window in the workspace menu X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;ds=sidebyside;h=ec5ea27e53fb638052e5f13b63afcb476a6eef38;p=chaz%2Fopenbox select the focused window in the workspace menu --- 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()); }