From 746859c1017e9cdf73eb91470e795f0c4b98b21a Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 2 Feb 2008 11:22:17 -0500 Subject: if windows on screen are going to be moved, then do the ReplayPointer before that occurs, so it goes to the right window. if they are not, then just wait until after the actions are run (for kdesktop's sake really) --- openbox/actions/desktop.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'openbox/actions') diff --git a/openbox/actions/desktop.c b/openbox/actions/desktop.c index 69275252..d939ed51 100644 --- a/openbox/actions/desktop.c +++ b/openbox/actions/desktop.c @@ -140,12 +140,14 @@ static gboolean run_func(ObActionsData *data, gpointer options) if (d < screen_num_desktops && d != screen_desktop) { gboolean go = TRUE; + actions_client_move(data, TRUE); if (o->send && data->client && client_normal(data->client)) { client_set_desktop(data->client, d, o->follow, FALSE); go = o->follow; } if (go) screen_set_desktop(d, TRUE); + actions_client_move(data, FALSE); } return FALSE; } -- cgit v1.2.3