aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/XLayer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/XLayer.cc')
-rw-r--r--src/FbTk/XLayer.cc13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/FbTk/XLayer.cc b/src/FbTk/XLayer.cc
index 21790cb..f20f8ff 100644
--- a/src/FbTk/XLayer.cc
+++ b/src/FbTk/XLayer.cc
@@ -27,9 +27,9 @@
27#include "MultLayers.hh" 27#include "MultLayers.hh"
28 28
29#include <iostream> 29#include <iostream>
30#include <algorithm>
30#include <numeric> 31#include <numeric>
31 32
32using std::find;
33using namespace FbTk; 33using namespace FbTk;
34 34
35#ifdef DEBUG 35#ifdef DEBUG
@@ -91,7 +91,7 @@ void XLayer::restack(const std::vector<XLayer*>& layers) {
91 std::vector<Window> stack; 91 std::vector<Window> stack;
92 std::vector<XLayer*>::const_iterator l; 92 std::vector<XLayer*>::const_iterator l;
93 for (l = layers.begin(); l != layers.end(); ++l) { 93 for (l = layers.begin(); l != layers.end(); ++l) {
94 extract_windows_to_stack((*l)->getItemList(), 0, stack); 94 extract_windows_to_stack((*l)->itemList(), 0, stack);
95 } 95 }
96 96
97 if (!stack.empty()) 97 if (!stack.empty())
@@ -160,7 +160,7 @@ void XLayer::alignItem(XLayerItem &item) {
160 // Note: some other things effectively assume that the window list is 160 // Note: some other things effectively assume that the window list is
161 // sorted from highest to lowest 161 // sorted from highest to lowest
162 // get our item 162 // get our item
163 iterator myit = find(itemList().begin(), itemList().end(), &item); 163 iterator myit = std::find(itemList().begin(), itemList().end(), &item);
164 iterator it = myit; 164 iterator it = myit;
165 165
166 // go to the one above it in our layer (top is front, so we decrement) 166 // go to the one above it in our layer (top is front, so we decrement)
@@ -211,7 +211,8 @@ void XLayer::raise(XLayerItem &item) {
211 return; // nothing to do 211 return; // nothing to do
212 } 212 }
213 213
214 iterator it = find(itemList().begin(), itemList().end(), &item); 214
215 iterator it = std::find(itemList().begin(), itemList().end(), &item);
215 if (it != itemList().end()) 216 if (it != itemList().end())
216 itemList().erase(it); 217 itemList().erase(it);
217 else { 218 else {
@@ -232,7 +233,7 @@ void XLayer::tempRaise(XLayerItem &item) {
232 if (!m_needs_restack && &item == itemList().front()) 233 if (!m_needs_restack && &item == itemList().front())
233 return; // nothing to do 234 return; // nothing to do
234 235
235 iterator it = find(itemList().begin(), itemList().end(), &item); 236 iterator it = std::find(itemList().begin(), itemList().end(), &item);
236 if (it == itemList().end()) { 237 if (it == itemList().end()) {
237#ifdef DEBUG 238#ifdef DEBUG
238 cerr<<__FILE__<<"("<<__LINE__<<"): WARNING: raise on item not in layer["<<m_layernum<<"]"<<endl; 239 cerr<<__FILE__<<"("<<__LINE__<<"): WARNING: raise on item not in layer["<<m_layernum<<"]"<<endl;
@@ -258,7 +259,7 @@ void XLayer::lower(XLayerItem &item) {
258 return; // nothing to do 259 return; // nothing to do
259 } 260 }
260 261
261 iterator it = find(itemList().begin(), itemList().end(), &item); 262 iterator it = std::find(itemList().begin(), itemList().end(), &item);
262 if (it != itemList().end()) 263 if (it != itemList().end())
263 // remove this item 264 // remove this item
264 itemList().erase(it); 265 itemList().erase(it);