select the focused window in the workspace menu
This commit is contained in:
parent
3442c5ef1c
commit
ec5ea27e53
1 changed files with 4 additions and 0 deletions
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue