cleanup dead function Workspace::setLastFocusedWindow
This commit is contained in:
parent
6f2a566206
commit
a6625f8ca5
3 changed files with 2 additions and 23 deletions
|
@ -1,6 +1,8 @@
|
|||
(Format: Year/Month/Day)
|
||||
Changes for 1.0rc2:
|
||||
*06/06/28:
|
||||
* Little cleanup of dead functions (Mark)
|
||||
Workspace.cc/hh
|
||||
* Fixed more focus issues with linear cycling and tabbed windows (Mark)
|
||||
Window.cc FocusControl.cc Screen.cc
|
||||
* Fixed some focus issues on detach and restart (Mark)
|
||||
|
|
|
@ -135,7 +135,6 @@ Workspace::GroupList Workspace::m_groups;
|
|||
Workspace::Workspace(BScreen &scrn, FbTk::MultLayers &layermanager,
|
||||
const std::string &name, unsigned int id):
|
||||
m_screen(scrn),
|
||||
m_lastfocus(0),
|
||||
m_clientmenu(scrn.menuTheme(), scrn.imageControl(),
|
||||
*scrn.layerManager().getLayer(Layer::MENU)),
|
||||
m_layermanager(layermanager),
|
||||
|
@ -151,14 +150,6 @@ Workspace::Workspace(BScreen &scrn, FbTk::MultLayers &layermanager,
|
|||
Workspace::~Workspace() {
|
||||
}
|
||||
|
||||
void Workspace::setLastFocusedWindow(FluxboxWindow *win) {
|
||||
// make sure we have this window in the list
|
||||
if (std::find(m_windowlist.begin(), m_windowlist.end(), win) != m_windowlist.end())
|
||||
m_lastfocus = win;
|
||||
else
|
||||
m_lastfocus = 0;
|
||||
}
|
||||
|
||||
void Workspace::addWindow(FluxboxWindow &w, bool place) {
|
||||
// we don't need to add a window that already exist in our list
|
||||
if (find(m_windowlist.begin(), m_windowlist.end(), &w) != m_windowlist.end())
|
||||
|
@ -197,10 +188,6 @@ int Workspace::removeWindow(FluxboxWindow *w, bool still_alive) {
|
|||
// detach from signals
|
||||
w->titleSig().detach(this);
|
||||
|
||||
if (m_lastfocus == w) {
|
||||
m_lastfocus = 0;
|
||||
}
|
||||
|
||||
if (w->isFocused() && still_alive)
|
||||
FocusControl::unfocusWindow(w->winClient(), true, true);
|
||||
|
||||
|
@ -212,10 +199,6 @@ int Workspace::removeWindow(FluxboxWindow *w, bool still_alive) {
|
|||
|
||||
updateClientmenu();
|
||||
|
||||
if (m_lastfocus == w || m_windowlist.empty())
|
||||
m_lastfocus = 0;
|
||||
|
||||
|
||||
if (!w->isStuck()) {
|
||||
FluxboxWindow::ClientList::iterator client_it =
|
||||
w->clientList().begin();
|
||||
|
|
|
@ -52,8 +52,6 @@ public:
|
|||
unsigned int workspaceid = 0);
|
||||
~Workspace();
|
||||
|
||||
void setLastFocusedWindow(FluxboxWindow *w);
|
||||
|
||||
/// Set workspace name
|
||||
void setName(const std::string &name);
|
||||
/// Deiconify all windows on this workspace
|
||||
|
@ -72,9 +70,6 @@ public:
|
|||
BScreen &screen() { return m_screen; }
|
||||
const BScreen &screen() const { return m_screen; }
|
||||
|
||||
FluxboxWindow *lastFocusedWindow() { return m_lastfocus; }
|
||||
const FluxboxWindow *lastFocusedWindow() const { return m_lastfocus; }
|
||||
|
||||
FbTk::Menu &menu() { return m_clientmenu; }
|
||||
const FbTk::Menu &menu() const { return m_clientmenu; }
|
||||
/// name of this workspace
|
||||
|
@ -97,7 +92,6 @@ private:
|
|||
void placeWindow(FluxboxWindow &win);
|
||||
|
||||
BScreen &m_screen;
|
||||
FluxboxWindow *m_lastfocus;
|
||||
FbMenu m_clientmenu;
|
||||
|
||||
typedef std::vector<std::string> Group;
|
||||
|
|
Loading…
Reference in a new issue