aboutsummaryrefslogtreecommitdiff
path: root/src/Workspace.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Workspace.cc')
-rw-r--r--src/Workspace.cc17
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;
135Workspace::Workspace(BScreen &scrn, FbTk::MultLayers &layermanager, 135Workspace::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,
151Workspace::~Workspace() { 150Workspace::~Workspace() {
152} 151}
153 152
154void 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
162void Workspace::addWindow(FluxboxWindow &w, bool place) { 153void 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();