diff options
author | rathnor <rathnor> | 2003-04-15 23:09:26 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2003-04-15 23:09:26 (GMT) |
commit | 909b3c5665213ef2a05ef26e33506d02829bdd93 (patch) | |
tree | 293a3a87f5ed1524c98d6011daa76743b953373e /src/FbTk/XLayer.cc | |
parent | 4ca88642fad0b89209aea9272b835b1e724975ad (diff) | |
download | fluxbox-909b3c5665213ef2a05ef26e33506d02829bdd93.zip fluxbox-909b3c5665213ef2a05ef26e33506d02829bdd93.tar.bz2 |
raise on focus [at end of cycle], also a temporary raise while cycling
(Simon)
Diffstat (limited to 'src/FbTk/XLayer.cc')
-rw-r--r-- | src/FbTk/XLayer.cc | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/FbTk/XLayer.cc b/src/FbTk/XLayer.cc index 43bd76c..ad1e49d 100644 --- a/src/FbTk/XLayer.cc +++ b/src/FbTk/XLayer.cc | |||
@@ -20,7 +20,7 @@ | |||
20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
21 | // DEALINGS IN THE SOFTWARE. | 21 | // DEALINGS IN THE SOFTWARE. |
22 | 22 | ||
23 | // $Id: XLayer.cc,v 1.6 2003/02/18 15:08:12 rathnor Exp $ | 23 | // $Id: XLayer.cc,v 1.7 2003/04/15 23:09:24 rathnor Exp $ |
24 | 24 | ||
25 | #include "XLayer.hh" | 25 | #include "XLayer.hh" |
26 | #include "XLayerItem.hh" | 26 | #include "XLayerItem.hh" |
@@ -264,6 +264,27 @@ void XLayer::raise(XLayerItem &item) { | |||
264 | 264 | ||
265 | } | 265 | } |
266 | 266 | ||
267 | void XLayer::tempRaise(XLayerItem &item) { | ||
268 | // assume it is already in this layer | ||
269 | |||
270 | if (&item == itemList().front()) | ||
271 | return; // nothing to do | ||
272 | |||
273 | iterator it = std::find(itemList().begin(), itemList().end(), &item); | ||
274 | if (it != itemList().end()) | ||
275 | // don't remove it | ||
276 | #ifdef DEBUG | ||
277 | else { | ||
278 | cerr<<__FILE__<<"("<<__LINE__<<"): WARNING: raise on item not in layer["<<m_layernum<<"]"<<endl; | ||
279 | return; | ||
280 | } | ||
281 | #endif // DEBUG | ||
282 | |||
283 | // don't add it back to the top | ||
284 | stackBelowItem(&item, m_manager.getLowestItemAboveLayer(m_layernum)); | ||
285 | |||
286 | } | ||
287 | |||
267 | void XLayer::lower(XLayerItem &item) { | 288 | void XLayer::lower(XLayerItem &item) { |
268 | // assume already in this layer | 289 | // assume already in this layer |
269 | 290 | ||