summaryrefslogtreecommitdiff
path: root/openbox/client.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2009-12-09 13:25:19 -0500
committerDana Jansens <danakj@orodu.net>2009-12-09 13:25:19 -0500
commit324ba15ebc79eb95cf6ec9c0f7d42250fc30f11b (patch)
tree844de3ad3fe13214223fcc597d94429217e235a4 /openbox/client.c
parent9f74f1e244d90a60aa33e5921a66bb22e3faf073 (diff)
Fix the Focus/Activate actions to focus windows on other desktops correctly
Diffstat (limited to 'openbox/client.c')
-rw-r--r--openbox/client.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/openbox/client.c b/openbox/client.c
index c4576952..b3f95364 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -3931,7 +3931,8 @@ static void client_present(ObClient *self, gboolean here, gboolean raise,
}
/* this function exists to map to the net_active_window message in the ewmh */
-void client_activate(ObClient *self, gboolean desktop, gboolean raise,
+void client_activate(ObClient *self, gboolean desktop,
+ gboolean here, gboolean raise,
gboolean unshade, gboolean user)
{
if ((user && (desktop ||
@@ -3939,7 +3940,7 @@ void client_activate(ObClient *self, gboolean desktop, gboolean raise,
self->desktop == screen_desktop)) ||
client_can_steal_focus(self, event_curtime, CurrentTime))
{
- client_present(self, FALSE, raise, unshade);
+ client_present(self, here, raise, unshade);
}
else
client_hilite(self, TRUE);