From 1a69dd6e0934207f344e9669f20371eebb8430a6 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Thu, 4 Apr 2002 14:23:54 +0000 Subject: fixed ToggleDecor key action --- src/fluxbox.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/fluxbox.cc b/src/fluxbox.cc index aaeb466..c2f53e2 100644 --- a/src/fluxbox.cc +++ b/src/fluxbox.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: fluxbox.cc,v 1.44 2002/04/04 11:28:19 fluxgen Exp $ +// $Id: fluxbox.cc,v 1.45 2002/04/04 14:23:54 fluxgen Exp $ //Use some GNU extensions #ifndef _GNU_SOURCE @@ -1112,7 +1112,7 @@ void Fluxbox::handleClientMessage(XClientMessageEvent &ce) { net.attrib = ce.data.l[1]; net.workspace = ce.data.l[2]; net.stack = ce.data.l[3]; - net.decoration = static_cast(ce.data.l[4]); + net.decoration = static_cast(ce.data.l[4]); win->changeBlackboxHints(&net); } } else { @@ -1422,8 +1422,10 @@ void Fluxbox::doWindowAction(Keys::KeyAction action, const int param) { if (t_alignment != Tab::PRIGHT) focused_window->getTab()->setPosition(); } - break; - default: + break; + case Keys::TOGGLEDECOR: + focused_window->toggleDecoration(); + default: //do nothing break; } -- cgit v0.11.2