X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Factions%2Fdesktop.c;h=e1bd5520808f195f5e80e836ca26592c1aef5026;hb=51bc793e046c036fdeea3a9cad834c13fda2832f;hp=37268bba9900c42d29fb4ffbb450f68168388c9b;hpb=1124d1036984f920dcd5b2caec9ff8fe2d788b8a;p=chaz%2Fopenbox diff --git a/openbox/actions/desktop.c b/openbox/actions/desktop.c index 37268bba..e1bd5520 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;