update the client menu when you do stuff without closing it. but this means we can't use actions in it. oh well? can kill the desktop notifiers now too. yay for more obvious code paths.
Dana Jansens danakj@orodu.net
6 files changed,
177 insertions(+),
146 deletions(-)
M
openbox/client.c
→
openbox/client.c
@@ -64,7 +64,6 @@
GList *client_list = NULL; static GSList *client_destructors = NULL; -static GSList *client_desktop_notifies = NULL; static void client_get_all(ObClient *self); static void client_toggle_border(ObClient *self, gboolean show);@@ -123,29 +122,6 @@ ClientCallback *d = it->data;
if (d->func == func) { g_free(d); client_destructors = g_slist_delete_link(client_destructors, it); - break; - } - } -} - -void client_add_desktop_notify(ObClientCallback func, gpointer data) -{ - ClientCallback *d = g_new(ClientCallback, 1); - d->func = func; - d->data = data; - client_desktop_notifies = g_slist_prepend(client_desktop_notifies, d); -} - -void client_remove_desktop_notify(ObClientCallback func) -{ - GSList *it; - - for (it = client_desktop_notifies; it; it = g_slist_next(it)) { - ClientCallback *d = it->data; - if (d->func == func) { - g_free(d); - client_desktop_notifies = - g_slist_delete_link(client_desktop_notifies, it); break; } }@@ -3043,13 +3019,6 @@ if (old != DESKTOP_ALL)
client_raise(self); if (STRUT_EXISTS(self->strut)) screen_update_areas(); - - /* call the notifies */ - GSList *it; - for (it = client_desktop_notifies; it; it = g_slist_next(it)) { - ClientCallback *d = it->data; - d->func(self, d->data); - } } /* move all transients */
M
openbox/client.h
→
openbox/client.h
@@ -308,10 +308,6 @@ /*! Get notified when the client is unmanaged */
void client_add_destructor(ObClientCallback func, gpointer data); void client_remove_destructor(ObClientCallback func); -/*! Get notified when the client changes desktop */ -void client_add_desktop_notify(ObClientCallback func, gpointer data); -void client_remove_desktop_notify(ObClientCallback func); - /*! Manages all existing windows */ void client_manage_all(); /*! Manages a given window */
M
openbox/moveresize.h
→
openbox/moveresize.h
@@ -36,6 +36,7 @@
void moveresize_startup(gboolean reconfig); void moveresize_shutdown(gboolean reconfig); +/*! @param corner This is one of the prop_atoms.net_wm_moveresize_ atoms */ void moveresize_start(struct _ObClient *c, gint x, gint y, guint button, guint32 corner); void moveresize_end(gboolean cancel);