diff options
author | fluxgen <fluxgen> | 2003-06-24 14:57:54 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-06-24 14:57:54 (GMT) |
commit | 4d389149bce961f531a17079bd3fe42e8d938fd0 (patch) | |
tree | 23caff252e9a331dccbb038ed0cf718bed3d191f /src/Workspace.cc | |
parent | 225dc75dd9c85f573c9be95e87f3eb4acadc4ddc (diff) | |
download | fluxbox_lack-4d389149bce961f531a17079bd3fe42e8d938fd0.zip fluxbox_lack-4d389149bce961f531a17079bd3fe42e8d938fd0.tar.bz2 |
minor cleaning, removed window number
Diffstat (limited to 'src/Workspace.cc')
-rw-r--r-- | src/Workspace.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/Workspace.cc b/src/Workspace.cc index ac28ac9..e583eaa 100644 --- a/src/Workspace.cc +++ b/src/Workspace.cc | |||
@@ -22,7 +22,7 @@ | |||
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: Workspace.cc,v 1.74 2003/06/16 14:54:18 fluxgen Exp $ | 25 | // $Id: Workspace.cc,v 1.75 2003/06/24 14:57:53 fluxgen Exp $ |
26 | 26 | ||
27 | #include "Workspace.hh" | 27 | #include "Workspace.hh" |
28 | 28 | ||
@@ -146,14 +146,13 @@ void Workspace::setLastFocusedWindow(FluxboxWindow *win) { | |||
146 | m_lastfocus = 0; | 146 | m_lastfocus = 0; |
147 | } | 147 | } |
148 | 148 | ||
149 | int Workspace::addWindow(FluxboxWindow &w, bool place) { | 149 | void Workspace::addWindow(FluxboxWindow &w, bool place) { |
150 | // we don't need to add a window that already exist in our list | 150 | // we don't need to add a window that already exist in our list |
151 | if (find(m_windowlist.begin(), m_windowlist.end(), &w) != | 151 | if (find(m_windowlist.begin(), m_windowlist.end(), &w) != |
152 | m_windowlist.end()) | 152 | m_windowlist.end()) |
153 | return -1; | 153 | return; |
154 | 154 | ||
155 | w.setWorkspace(m_id); | 155 | w.setWorkspace(m_id); |
156 | w.setWindowNumber(m_windowlist.size()); | ||
157 | 156 | ||
158 | if (place) | 157 | if (place) |
159 | placeWindow(w); | 158 | placeWindow(w); |
@@ -170,7 +169,6 @@ int Workspace::addWindow(FluxboxWindow &w, bool place) { | |||
170 | screen().updateNetizenWindowAdd((*client_it)->window(), m_id); | 169 | screen().updateNetizenWindowAdd((*client_it)->window(), m_id); |
171 | } | 170 | } |
172 | 171 | ||
173 | return w.windowNumber(); | ||
174 | } | 172 | } |
175 | 173 | ||
176 | 174 | ||