diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-05-13 07:45:15 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-05-13 07:45:15 +0000 |
| commit | acfa2af3c2eacd099869cc5aebdcfa1241214e8b (patch) | |
| tree | a31d4c4a3f778e7d9eca1f0207733141b4fb09e9 /openbox/focus.c | |
| parent | 9f22554b6a1e7113b4ff86061327d9d0b0d87760 (diff) | |
use the right list in client_add_hide_notify, rename destructor to destroy_notify which is really what it is, and is more consistant now that there are 2 notifies
Diffstat (limited to 'openbox/focus.c')
| -rw-r--r-- | openbox/focus.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/openbox/focus.c b/openbox/focus.c index 1d9ddcaa..00759514 100644 --- a/openbox/focus.c +++ b/openbox/focus.c @@ -67,7 +67,7 @@ static gboolean valid_focus_target(ObClient *ft, gboolean all_desktops, gboolean dock_windows, gboolean desktop_windows); -static void focus_cycle_destructor(ObClient *client, gpointer data); +static void focus_cycle_destroy_notify(ObClient *client, gpointer data); static void focus_tried_hide_notify(ObClient *client, gpointer data); static Window createWindow(Window parent, gulong mask, @@ -86,8 +86,8 @@ void focus_startup(gboolean reconfig) if (!reconfig) { XSetWindowAttributes attr; - client_add_destructor(focus_cycle_destructor, NULL); - client_add_destructor(focus_tried_hide_notify, NULL); + client_add_destroy_notify(focus_cycle_destroy_notify, NULL); + client_add_destroy_notify(focus_tried_hide_notify, NULL); client_add_hide_notify(focus_tried_hide_notify, NULL); /* start with nothing focused */ @@ -141,8 +141,8 @@ void focus_shutdown(gboolean reconfig) icon_popup_free(focus_cycle_popup); if (!reconfig) { - client_remove_destructor(focus_cycle_destructor); - client_remove_destructor(focus_tried_hide_notify); + client_remove_destroy_notify(focus_cycle_destroy_notify); + client_remove_destroy_notify(focus_tried_hide_notify); client_remove_hide_notify(focus_tried_hide_notify); /* reset focus to root */ @@ -417,7 +417,7 @@ static void popup_cycle(ObClient *c, gboolean show, g_free(showtext); } -static void focus_cycle_destructor(ObClient *client, gpointer data) +static void focus_cycle_destroy_notify(ObClient *client, gpointer data) { /* end cycling if the target disappears. CurrentTime is fine, time won't be used |
