summaryrefslogtreecommitdiff
path: root/src/FbTk/MultLayers.cc
diff options
context:
space:
mode:
authorJim Ramsay <i.am@jimramsay.com>2009-10-14 01:05:49 (GMT)
committerJim Ramsay <i.am@jimramsay.com>2009-10-14 01:05:49 (GMT)
commit839ea523164caecd8c779e60539b78c2a748a81f (patch)
tree0019d04f27a1a258bc7a900e3cf77b916dca6493 /src/FbTk/MultLayers.cc
parent4d3aa646c1d1d1de4fdb31f938f6ea62fd5dd21e (diff)
parent8def80cec337a986b762cdbb5e2555c6da809353 (diff)
downloadfluxbox_lack-argb.zip
fluxbox_lack-argb.tar.bz2
Merge branch 'master' into argbtesting/argbargb
Conflicts: src/FbTk/FbWindow.cc
Diffstat (limited to 'src/FbTk/MultLayers.cc')
-rw-r--r--src/FbTk/MultLayers.cc30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/FbTk/MultLayers.cc b/src/FbTk/MultLayers.cc
index 79dab59..a9135e3 100644
--- a/src/FbTk/MultLayers.cc
+++ b/src/FbTk/MultLayers.cc
@@ -55,36 +55,6 @@ XLayerItem *MultLayers::getLowestItemAboveLayer(int layernum) {
55 55
56} 56}
57 57
58XLayerItem *MultLayers::getItemBelow(XLayerItem &item) {
59 XLayer &curr_layer = item.getLayer();
60
61 // assume that the LayerItem does exist in a layer.
62 XLayerItem *ret = curr_layer.getItemBelow(item);
63
64 if (ret == 0) {
65 int num = curr_layer.getLayerNum()-1;
66 while (num >= 0 && !ret) {
67 ret = m_layers[num]->getItemBelow(item);
68 num--;
69 }
70 }
71
72 return ret;
73}
74
75XLayerItem *MultLayers::getItemAbove(XLayerItem &item) {
76 XLayer &curr_layer = item.getLayer();
77
78 // assume that the LayerItem does exist in a layer.
79 XLayerItem *ret = curr_layer.getItemAbove(item);
80
81 if (!ret) {
82 ret = getLowestItemAboveLayer(curr_layer.getLayerNum());
83 }
84
85 return ret;
86}
87
88void MultLayers::addToTop(XLayerItem &item, int layernum) { 58void MultLayers::addToTop(XLayerItem &item, int layernum) {
89 if (layernum < 0) 59 if (layernum < 0)
90 layernum = 0; 60 layernum = 0;