X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Factions%2Fdesktop.c;h=e352aa2e861d5fb042fc9368b474ddc1a8ce58e9;hb=a1746ab2158da2324aefb7ce81e7b5edc9c41e79;hp=37268bba9900c42d29fb4ffbb450f68168388c9b;hpb=97de73776708d7c75b42c8fcf33342541d721c83;p=chaz%2Fopenbox diff --git a/openbox/actions/desktop.c b/openbox/actions/desktop.c index 37268bba..e352aa2e 100644 --- a/openbox/actions/desktop.c +++ b/openbox/actions/desktop.c @@ -86,7 +86,7 @@ static gpointer setup_go_func(xmlNodePtr node) } else { o->type = ABSOLUTE; - o->abs.desktop = obt_parse_node_int(n) - 1; + o->abs.desktop = atoi(s) - 1; } g_free(s); } @@ -118,8 +118,6 @@ static gboolean run_func(ObActionsData *data, gpointer options) Options *o = options; guint d; - - switch (o->type) { case LAST: d = screen_last_desktop; @@ -142,7 +140,12 @@ static gboolean run_func(ObActionsData *data, gpointer options) go = o->follow; } - if (go) screen_set_desktop(d, TRUE); + if (go) { + screen_set_desktop(d, TRUE); + if (data->client) + client_bring_helper_windows(data->client); + } + actions_client_move(data, FALSE); } return FALSE;