aboutsummaryrefslogtreecommitdiff
path: root/src/Workspace.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Workspace.cc')
-rw-r--r--src/Workspace.cc16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/Workspace.cc b/src/Workspace.cc
index cce8dfe..73ed077 100644
--- a/src/Workspace.cc
+++ b/src/Workspace.cc
@@ -85,16 +85,13 @@ Workspace::Workspace(BScreen &scrn, const string &name, unsigned int id):
85Workspace::~Workspace() { 85Workspace::~Workspace() {
86} 86}
87 87
88void Workspace::addWindow(FluxboxWindow &w, bool place) { 88void Workspace::addWindow(FluxboxWindow &w) {
89 // we don't need to add a window that already exist in our list 89 // we don't need to add a window that already exist in our list
90 if (find(m_windowlist.begin(), m_windowlist.end(), &w) != m_windowlist.end()) 90 if (find(m_windowlist.begin(), m_windowlist.end(), &w) != m_windowlist.end())
91 return; 91 return;
92 92
93 w.setWorkspace(m_id); 93 w.setWorkspace(m_id);
94 94
95 if (place)
96 placeWindow(w);
97
98 m_windowlist.push_back(&w); 95 m_windowlist.push_back(&w);
99 m_clientlist_sig.notify(); 96 m_clientlist_sig.notify();
100 97
@@ -197,14 +194,3 @@ void Workspace::shutdown() {
197void Workspace::updateClientmenu() { 194void Workspace::updateClientmenu() {
198 m_clientlist_sig.notify(); 195 m_clientlist_sig.notify();
199} 196}
200
201void Workspace::placeWindow(FluxboxWindow &win) {
202 int place_x, place_y;
203 // we ignore the return value,
204 // the screen placement strategy is guaranteed to succeed.
205 screen().placementStrategy().placeWindow(m_windowlist,
206 win,
207 place_x, place_y);
208
209 win.moveResize(place_x, place_y, win.width(), win.height());
210}