aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/XLayer.hh
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2011-02-23 21:46:13 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2011-02-23 21:46:13 (GMT)
commit813e6c4402b7d13a9e7b1ce3e391bc4c8d894ea3 (patch)
treeb921da6cf7680d0bcded98caf319de6d058dca13 /src/FbTk/XLayer.hh
parentc859ae3987d0b49609effb98e8c28562e1947cf1 (diff)
downloadfluxbox-813e6c4402b7d13a9e7b1ce3e391bc4c8d894ea3.zip
fluxbox-813e6c4402b7d13a9e7b1ce3e391bc4c8d894ea3.tar.bz2
disabled overhead base classes 'FbTk::Layer' and 'FbTk::LayerItem'
had to add <algorithm> at various other files as a result of this change.
Diffstat (limited to 'src/FbTk/XLayer.hh')
-rw-r--r--src/FbTk/XLayer.hh9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/FbTk/XLayer.hh b/src/FbTk/XLayer.hh
index 3b7e45f..6255950 100644
--- a/src/FbTk/XLayer.hh
+++ b/src/FbTk/XLayer.hh
@@ -23,7 +23,7 @@
23#ifndef FBTK_XLAYER_HH 23#ifndef FBTK_XLAYER_HH
24#define FBTK_XLAYER_HH 24#define FBTK_XLAYER_HH
25 25
26#include "Layer.hh" 26#include <vector>
27#include <list> 27#include <list>
28 28
29namespace FbTk { 29namespace FbTk {
@@ -31,7 +31,7 @@ namespace FbTk {
31class MultLayers; 31class MultLayers;
32class XLayerItem; 32class XLayerItem;
33 33
34class XLayer : public FbTk::LayerBase<XLayerItem, std::list<XLayerItem *> > { 34class XLayer {
35public: 35public:
36 36
37 XLayer(MultLayers &manager, int layernum); 37 XLayer(MultLayers &manager, int layernum);
@@ -49,8 +49,8 @@ public:
49 int countWindows(); 49 int countWindows();
50 void stackBelowItem(XLayerItem &item, XLayerItem *above); 50 void stackBelowItem(XLayerItem &item, XLayerItem *above);
51 XLayerItem *getLowestItem(); 51 XLayerItem *getLowestItem();
52 const ItemList &getItemList() const { return itemList(); } 52 const ItemList &itemList() const { return m_items; }
53 ItemList &getItemList() { return itemList(); } 53 ItemList &itemList() { return m_items; }
54 54
55 // we redefine these as XLayer has special optimisations, and X restacking needs 55 // we redefine these as XLayer has special optimisations, and X restacking needs
56 iterator insert(XLayerItem &item, unsigned int pos=0); 56 iterator insert(XLayerItem &item, unsigned int pos=0);
@@ -77,6 +77,7 @@ private:
77 MultLayers &m_manager; 77 MultLayers &m_manager;
78 int m_layernum; 78 int m_layernum;
79 bool m_needs_restack; 79 bool m_needs_restack;
80 ItemList m_items;
80}; 81};
81 82
82} // namespace FbTk 83} // namespace FbTk