diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2009-06-28 17:15:06 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2009-06-28 17:15:06 (GMT) |
commit | 5f9f2475b72e977fa96214e368c34c588b265888 (patch) | |
tree | db2dc4b3cc762b356c4420f9345b52e39d94f0c7 /src/Window.cc | |
parent | c1d9ae5068ed209a8ed051a68c269bd0158bf6a8 (diff) | |
download | fluxbox_pavel-5f9f2475b72e977fa96214e368c34c588b265888.zip fluxbox_pavel-5f9f2475b72e977fa96214e368c34c588b265888.tar.bz2 |
make Raise/LowerLayer accept integer argument for number of layers, default 2
Diffstat (limited to 'src/Window.cc')
-rw-r--r-- | src/Window.cc | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/Window.cc b/src/Window.cc index 825c050..defa6cc 100644 --- a/src/Window.cc +++ b/src/Window.cc | |||
@@ -1697,15 +1697,10 @@ void FluxboxWindow::tempRaise() { | |||
1697 | } | 1697 | } |
1698 | 1698 | ||
1699 | 1699 | ||
1700 | void FluxboxWindow::raiseLayer() { | 1700 | void FluxboxWindow::changeLayer(int diff) { |
1701 | moveToLayer(m_state.layernum-1); | 1701 | moveToLayer(m_state.layernum+diff); |
1702 | } | 1702 | } |
1703 | 1703 | ||
1704 | void FluxboxWindow::lowerLayer() { | ||
1705 | moveToLayer(m_state.layernum+1); | ||
1706 | } | ||
1707 | |||
1708 | |||
1709 | void FluxboxWindow::moveToLayer(int layernum, bool force) { | 1704 | void FluxboxWindow::moveToLayer(int layernum, bool force) { |
1710 | #ifdef DEBUG | 1705 | #ifdef DEBUG |
1711 | cerr<<"FluxboxWindow("<<title()<<")::moveToLayer("<<layernum<<")"<<endl; | 1706 | cerr<<"FluxboxWindow("<<title()<<")::moveToLayer("<<layernum<<")"<<endl; |