summaryrefslogtreecommitdiff
path: root/util/epist/screen.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-07-20 09:58:49 +0000
committerDana Jansens <danakj@orodu.net>2002-07-20 09:58:49 +0000
commita9dfa0439bd8d4f525d5b41a22a3eb14b94d1200 (patch)
treec56566233d28320b710dc148a13f66bc43250391 /util/epist/screen.cc
parentfaab750f78c333c1c412023677d6d85915cb57de (diff)
add next/prev window on all workspaces
Diffstat (limited to 'util/epist/screen.cc')
-rw-r--r--util/epist/screen.cc12
1 files changed, 2 insertions, 10 deletions
diff --git a/util/epist/screen.cc b/util/epist/screen.cc
index c7c2a42d..72ee3435 100644
--- a/util/epist/screen.cc
+++ b/util/epist/screen.cc
@@ -356,16 +356,8 @@ void screen::cycleWindow(const bool forward, const bool alldesktops) const {
(*target)->iconic() ||
(! alldesktops && (*target)->desktop() != _active_desktop));
- if (target != _clients.end()) {
- if ((*target)->desktop() != _active_desktop)
- changeWorkspace((*target)->desktop());
-
- // we dont send an ACTIVE_WINDOW client message because that would also
- // unshade the window if it was shaded
- XSetInputFocus(_epist->getXDisplay(), (*target)->window(), RevertToNone,
- CurrentTime);
- XRaiseWindow(_epist->getXDisplay(), (*target)->window());
- }
+ if (target != _clients.end())
+ (*target)->focus();
}