diff options
author | markt <markt> | 2006-06-28 20:06:49 (GMT) |
---|---|---|
committer | markt <markt> | 2006-06-28 20:06:49 (GMT) |
commit | a6625f8ca520a8f77ec54035e33af57bf6d5f9e4 (patch) | |
tree | abeaca45fdabd2cfeeb43918aa8b616b50a76759 /src/Workspace.cc | |
parent | 6f2a566206faa0e6e8eff34f96888f6910644f56 (diff) | |
download | fluxbox-a6625f8ca520a8f77ec54035e33af57bf6d5f9e4.zip fluxbox-a6625f8ca520a8f77ec54035e33af57bf6d5f9e4.tar.bz2 |
cleanup dead function Workspace::setLastFocusedWindow
Diffstat (limited to 'src/Workspace.cc')
-rw-r--r-- | src/Workspace.cc | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/Workspace.cc b/src/Workspace.cc index 46d3078..f00d4c7 100644 --- a/src/Workspace.cc +++ b/src/Workspace.cc | |||
@@ -135,7 +135,6 @@ Workspace::GroupList Workspace::m_groups; | |||
135 | Workspace::Workspace(BScreen &scrn, FbTk::MultLayers &layermanager, | 135 | Workspace::Workspace(BScreen &scrn, FbTk::MultLayers &layermanager, |
136 | const std::string &name, unsigned int id): | 136 | const std::string &name, unsigned int id): |
137 | m_screen(scrn), | 137 | m_screen(scrn), |
138 | m_lastfocus(0), | ||
139 | m_clientmenu(scrn.menuTheme(), scrn.imageControl(), | 138 | m_clientmenu(scrn.menuTheme(), scrn.imageControl(), |
140 | *scrn.layerManager().getLayer(Layer::MENU)), | 139 | *scrn.layerManager().getLayer(Layer::MENU)), |
141 | m_layermanager(layermanager), | 140 | m_layermanager(layermanager), |
@@ -151,14 +150,6 @@ Workspace::Workspace(BScreen &scrn, FbTk::MultLayers &layermanager, | |||
151 | Workspace::~Workspace() { | 150 | Workspace::~Workspace() { |
152 | } | 151 | } |
153 | 152 | ||
154 | void Workspace::setLastFocusedWindow(FluxboxWindow *win) { | ||
155 | // make sure we have this window in the list | ||
156 | if (std::find(m_windowlist.begin(), m_windowlist.end(), win) != m_windowlist.end()) | ||
157 | m_lastfocus = win; | ||
158 | else | ||
159 | m_lastfocus = 0; | ||
160 | } | ||
161 | |||
162 | void Workspace::addWindow(FluxboxWindow &w, bool place) { | 153 | void Workspace::addWindow(FluxboxWindow &w, bool place) { |
163 | // we don't need to add a window that already exist in our list | 154 | // we don't need to add a window that already exist in our list |
164 | if (find(m_windowlist.begin(), m_windowlist.end(), &w) != m_windowlist.end()) | 155 | if (find(m_windowlist.begin(), m_windowlist.end(), &w) != m_windowlist.end()) |
@@ -197,10 +188,6 @@ int Workspace::removeWindow(FluxboxWindow *w, bool still_alive) { | |||
197 | // detach from signals | 188 | // detach from signals |
198 | w->titleSig().detach(this); | 189 | w->titleSig().detach(this); |
199 | 190 | ||
200 | if (m_lastfocus == w) { | ||
201 | m_lastfocus = 0; | ||
202 | } | ||
203 | |||
204 | if (w->isFocused() && still_alive) | 191 | if (w->isFocused() && still_alive) |
205 | FocusControl::unfocusWindow(w->winClient(), true, true); | 192 | FocusControl::unfocusWindow(w->winClient(), true, true); |
206 | 193 | ||
@@ -212,10 +199,6 @@ int Workspace::removeWindow(FluxboxWindow *w, bool still_alive) { | |||
212 | 199 | ||
213 | updateClientmenu(); | 200 | updateClientmenu(); |
214 | 201 | ||
215 | if (m_lastfocus == w || m_windowlist.empty()) | ||
216 | m_lastfocus = 0; | ||
217 | |||
218 | |||
219 | if (!w->isStuck()) { | 202 | if (!w->isStuck()) { |
220 | FluxboxWindow::ClientList::iterator client_it = | 203 | FluxboxWindow::ClientList::iterator client_it = |
221 | w->clientList().begin(); | 204 | w->clientList().begin(); |