X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fclient_list_menu.c;h=ccc594c0cde3f1c945c1f52f915874af72cf1796;hb=b07194a7aef3d0fbbef01a4e82fe7763f8c82720;hp=acf9f071837204a20d005ecbb646e3ae0d9e25a0;hpb=fdd1c3c8a7eac8ba1246ae64cbfca6f922294c51;p=chaz%2Fopenbox diff --git a/openbox/client_list_menu.c b/openbox/client_list_menu.c index acf9f071..ccc594c0 100644 --- a/openbox/client_list_menu.c +++ b/openbox/client_list_menu.c @@ -31,7 +31,8 @@ static GSList *desktop_menus; -typedef struct { +typedef struct +{ guint desktop; } DesktopData; @@ -92,12 +93,11 @@ static void desk_menu_update(ObMenuFrame *frame, gpointer data) when we make the actions! */ static void desk_menu_execute(ObMenuEntry *self, guint state, gpointer data) { - GSList *it; + ObAction *a; - for (it = self->data.normal.actions; it; it = g_slist_next(it)) - { - ObAction *act = it->data; - action_run(it->data, act->data.any.c, state); + if (self->data.normal.actions) { + a = self->data.normal.actions->data; + action_run(self->data.normal.actions, a->data.any.c, state); } }