]> Dogcows Code - chaz/openbox/commitdiff
don't need the client destructor now
authorDana Jansens <danakj@orodu.net>
Sat, 26 May 2007 21:09:48 +0000 (21:09 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 26 May 2007 21:09:48 +0000 (21:09 +0000)
openbox/focus_cycle.c

index 4e231b03f33ff01122ee320eda3d67735ba57d9e..4ff098d71cfd8fb75b712256d5b37ebb7db2972a 100644 (file)
@@ -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,
This page took 0.025471 seconds and 4 git commands to generate.