summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-07-16 04:15:24 +0000
committerDana Jansens <danakj@orodu.net>2002-07-16 04:15:24 +0000
commit7427fe1b9c7eabccdece941c70403a0fef1349b0 (patch)
tree3d05944afeeb27fcf069245c18956a724a120230 /src
parent1d4391b09c12a0615bb6be65f9af514db4eed709 (diff)
make bbkeys' cycliong work right, how it used to. instead of working like supoprt for brokenass kwin does
Diffstat (limited to 'src')
-rw-r--r--src/blackbox.cc9
1 files 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);