From: Dana Jansens Date: Sat, 26 May 2007 21:09:48 +0000 (+0000) Subject: don't need the client destructor now X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=11c4ce4903f9ac31bae3b68209f47cb1a058afb4;p=chaz%2Fopenbox don't need the client destructor now --- diff --git a/openbox/focus_cycle.c b/openbox/focus_cycle.c index 4e231b03..4ff098d7 100644 --- a/openbox/focus_cycle.c +++ b/openbox/focus_cycle.c @@ -36,7 +36,6 @@ static gboolean focus_cycle_all_desktops; static gboolean focus_cycle_dock_windows; static gboolean focus_cycle_desktop_windows; -static void focus_cycle_destroy_notify (ObClient *client, gpointer data); static gboolean focus_target_has_siblings (ObClient *ft, gboolean iconic_windows, gboolean all_desktops); @@ -52,15 +51,11 @@ static ObClient *focus_find_directional (ObClient *c, void focus_cycle_startup(gboolean reconfig) { if (reconfig) return; - - client_add_destroy_notify(focus_cycle_destroy_notify, NULL); } void focus_cycle_shutdown(gboolean reconfig) { if (reconfig) return; - - client_remove_destroy_notify(focus_cycle_destroy_notify); } void focus_cycle_stop() @@ -71,14 +66,6 @@ void focus_cycle_stop() } } -static void focus_cycle_destroy_notify(ObClient *client, gpointer data) -{ - /* end cycling if the target disappears. CurrentTime is fine, time won't - be used */ - if (focus_cycle_target == client) - focus_cycle_stop(); -} - /*! Returns if a focus target has valid group siblings that can be cycled to in its place */ static gboolean focus_target_has_siblings(ObClient *ft,