switch workspaces if neccessary for a NET_WM_ACTIVE_WINDOW ClientMessage

This commit is contained in:
Dana Jansens 2002-07-16 04:18:13 +00:00
parent 7427fe1b9c
commit 315f1d107a

View file

@ -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);