don't need the client destructor now
This commit is contained in:
parent
5d9b059601
commit
11c4ce4903
1 changed files with 0 additions and 13 deletions
|
@ -36,7 +36,6 @@ static gboolean focus_cycle_all_desktops;
|
||||||
static gboolean focus_cycle_dock_windows;
|
static gboolean focus_cycle_dock_windows;
|
||||||
static gboolean focus_cycle_desktop_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,
|
static gboolean focus_target_has_siblings (ObClient *ft,
|
||||||
gboolean iconic_windows,
|
gboolean iconic_windows,
|
||||||
gboolean all_desktops);
|
gboolean all_desktops);
|
||||||
|
@ -52,15 +51,11 @@ static ObClient *focus_find_directional (ObClient *c,
|
||||||
void focus_cycle_startup(gboolean reconfig)
|
void focus_cycle_startup(gboolean reconfig)
|
||||||
{
|
{
|
||||||
if (reconfig) return;
|
if (reconfig) return;
|
||||||
|
|
||||||
client_add_destroy_notify(focus_cycle_destroy_notify, NULL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void focus_cycle_shutdown(gboolean reconfig)
|
void focus_cycle_shutdown(gboolean reconfig)
|
||||||
{
|
{
|
||||||
if (reconfig) return;
|
if (reconfig) return;
|
||||||
|
|
||||||
client_remove_destroy_notify(focus_cycle_destroy_notify);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void focus_cycle_stop()
|
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
|
/*! Returns if a focus target has valid group siblings that can be cycled
|
||||||
to in its place */
|
to in its place */
|
||||||
static gboolean focus_target_has_siblings(ObClient *ft,
|
static gboolean focus_target_has_siblings(ObClient *ft,
|
||||||
|
|
Loading…
Reference in a new issue