From: Dana Jansens Date: Tue, 16 Jul 2002 04:18:13 +0000 (+0000) Subject: switch workspaces if neccessary for a NET_WM_ACTIVE_WINDOW ClientMessage X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=315f1d107aded0ad2399292f2900c7fd46791ab2;p=chaz%2Fopenbox switch workspaces if neccessary for a NET_WM_ACTIVE_WINDOW ClientMessage --- diff --git a/src/blackbox.cc b/src/blackbox.cc index 4a1aebc8..ba0b0747 100644 --- a/src/blackbox.cc +++ b/src/blackbox.cc @@ -717,10 +717,14 @@ void Blackbox::process_event(XEvent *e) { BlackboxWindow *win = searchWindow(e->xclient.window); if (win) { + BScreen *screen = win->getScreen(); + if (win->isIconic()) win->deiconify(False, True); if (win->isShaded()) win->shade(); + if (win->getWorkspaceNumber() != screen->getCurrentWorkspaceID()) + screen->changeWorkspaceID(win->getWorkspaceNumber()); if (win->isVisible() && win->setInputFocus()) { win->getScreen()->getWorkspace(win->getWorkspaceNumber())-> raiseWindow(win);