aboutsummaryrefslogtreecommitdiff
path: root/src/Workspace.cc
diff options
context:
space:
mode:
authormarkt <markt>2007-10-24 17:09:26 (GMT)
committermarkt <markt>2007-10-24 17:09:26 (GMT)
commitf3afe787c1209cf1357493924a4f7eb7864def54 (patch)
treed0c0c3eca154ab538fbc1fb3c62081e9250c05bd /src/Workspace.cc
parent74eb584a312aba21b21eccb6c49ade1571aa3740 (diff)
downloadfluxbox-f3afe787c1209cf1357493924a4f7eb7864def54.zip
fluxbox-f3afe787c1209cf1357493924a4f7eb7864def54.tar.bz2
introduced workspacename for ClientPattern, and some miscellaneous cleanup
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}