From 7427fe1b9c7eabccdece941c70403a0fef1349b0 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 16 Jul 2002 04:15:24 +0000 Subject: [PATCH] make bbkeys' cycliong work right, how it used to. instead of working like supoprt for brokenass kwin does --- src/blackbox.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/blackbox.cc b/src/blackbox.cc index 3ec32d52..4a1aebc8 100644 --- a/src/blackbox.cc +++ b/src/blackbox.cc @@ -705,8 +705,13 @@ void Blackbox::process_event(XEvent *e) { if (screen && workspace < screen->getWorkspaceCount()) screen->changeWorkspaceID(workspace); } else if (e->xclient.message_type == - xatom->getAtom(XAtom::blackbox_change_window_focus) || - e->xclient.message_type == + xatom->getAtom(XAtom::blackbox_change_window_focus)) { + // TEMP HACK TO KEEP BBKEYS WORKING + BlackboxWindow *win = searchWindow(e->xclient.window); + + if (win && win->isVisible() && win->setInputFocus()) + win->installColormap(True); + } else if (e->xclient.message_type == xatom->getAtom(XAtom::net_active_window)) { // NET_ACTIVE_WINDOW BlackboxWindow *win = searchWindow(e->xclient.window); -- 2.45.2