fixed ToggleDecor key action

This commit is contained in:
fluxgen 2002-04-04 14:23:54 +00:00
parent 598cd8a7fd
commit 1a69dd6e09

View file

@ -22,7 +22,7 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE. // 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 //Use some GNU extensions
#ifndef _GNU_SOURCE #ifndef _GNU_SOURCE
@ -1112,7 +1112,7 @@ void Fluxbox::handleClientMessage(XClientMessageEvent &ce) {
net.attrib = ce.data.l[1]; net.attrib = ce.data.l[1];
net.workspace = ce.data.l[2]; net.workspace = ce.data.l[2];
net.stack = ce.data.l[3]; net.stack = ce.data.l[3];
net.decoration = static_cast<BaseDisplay::Decor>(ce.data.l[4]); net.decoration = static_cast<int>(ce.data.l[4]);
win->changeBlackboxHints(&net); win->changeBlackboxHints(&net);
} }
} else { } else {
@ -1423,7 +1423,9 @@ void Fluxbox::doWindowAction(Keys::KeyAction action, const int param) {
focused_window->getTab()->setPosition(); focused_window->getTab()->setPosition();
} }
break; break;
default: case Keys::TOGGLEDECOR:
focused_window->toggleDecoration();
default: //do nothing
break; break;
} }