diff options
author | Thomas Lübking <thomas.luebking@gmail.com> | 2016-08-12 15:29:50 (GMT) |
---|---|---|
committer | Mathias Gumz <akira@fluxbox.org> | 2016-08-26 06:06:47 (GMT) |
commit | 6c0565c482b496b7d34e3731415829e7c4872535 (patch) | |
tree | 7b59e1a464c3c915e98f2d292cb5e4e992b3985e /src/Toolbar.cc | |
parent | f22435d60bf7a52e00608576074dd791e8731bf2 (diff) | |
download | fluxbox-6c0565c482b496b7d34e3731415829e7c4872535.zip fluxbox-6c0565c482b496b7d34e3731415829e7c4872535.tar.bz2 |
add commands to toggle toolbar and slit layer
toggle(Toolbar|Slit)Above toggles the resp. item between its
regular and the AboveDock layer (ie. above everything, even visible on
active fullscreen windows)
Also required step for autoraising.
REQUEST: 222
Diffstat (limited to 'src/Toolbar.cc')
-rw-r--r-- | src/Toolbar.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Toolbar.cc b/src/Toolbar.cc index 1bd3fb5..cb52066 100644 --- a/src/Toolbar.cc +++ b/src/Toolbar.cc | |||
@@ -719,6 +719,13 @@ void Toolbar::toggleHidden() { | |||
719 | 719 | ||
720 | } | 720 | } |
721 | 721 | ||
722 | void Toolbar::toggleAboveDock() { | ||
723 | if (m_layeritem.getLayerNum() == m_rc_layernum->getNum()) | ||
724 | m_layeritem.moveToLayer(ResourceLayer::ABOVE_DOCK); | ||
725 | else | ||
726 | m_layeritem.moveToLayer(m_rc_layernum->getNum()); | ||
727 | } | ||
728 | |||
722 | void Toolbar::moveToLayer(int layernum) { | 729 | void Toolbar::moveToLayer(int layernum) { |
723 | m_layeritem.moveToLayer(layernum); | 730 | m_layeritem.moveToLayer(layernum); |
724 | *m_rc_layernum = layernum; | 731 | *m_rc_layernum = layernum; |