From 34f9c5e44685a56baf66b38dda30bc062548cc66 Mon Sep 17 00:00:00 2001 From: pekdon Date: Fri, 11 Jan 2002 22:48:45 +0000 Subject: small bugfix in keybindings --- ChangeLog | 2 ++ src/fluxbox.cc | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5cc6529..a937d8a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ Changes for 0.1.6: *01/01/11: + * Fixed small bug in keybindings code, now killwindow and shade will + work as supposed with tabs. (Claes Nästén) * Fixed so it compiles with cygwin (Thanks Eric Nicolas) * Fixed bug in maximize over slit option * Updated documents (Thanks Rando Christensen) diff --git a/src/fluxbox.cc b/src/fluxbox.cc index fd3f2f0..2f8d3cb 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.19 2002/01/11 09:17:37 fluxgen Exp $ +// $Id: fluxbox.cc,v 1.20 2002/01/11 22:48:45 pekdon Exp $ // stupid macros needed to access some functions in version 2 of the GNU C // library @@ -845,6 +845,8 @@ void Fluxbox::process_event(XEvent *e) { break; */ case Keys::KILLWINDOW: //kill the current window + XKillClient(screen->getBaseDisplay()->getXDisplay(), + focused_window->getClientWindow()); break; case Keys::NEXTWINDOW: //activate next window screen->nextFocus(); @@ -1036,6 +1038,8 @@ void Fluxbox::doWindowAction(Keys::KeyAction action) { focused_window->close(); break; case Keys::SHADE: + if (focused_window->hasTab()) + focused_window->getTab()->shade(); focused_window->shade(); break; case Keys::MAXIMIZE: -- cgit v0.11.2