when i said it handled both cases, i was mistaken, so use a callback for each case.
This commit is contained in:
parent
685dca1c5f
commit
9f22554b6a
1 changed files with 2 additions and 0 deletions
|
@ -87,6 +87,7 @@ void focus_startup(gboolean reconfig)
|
|||
XSetWindowAttributes attr;
|
||||
|
||||
client_add_destructor(focus_cycle_destructor, NULL);
|
||||
client_add_destructor(focus_tried_hide_notify, NULL);
|
||||
client_add_hide_notify(focus_tried_hide_notify, NULL);
|
||||
|
||||
/* start with nothing focused */
|
||||
|
@ -141,6 +142,7 @@ void focus_shutdown(gboolean reconfig)
|
|||
|
||||
if (!reconfig) {
|
||||
client_remove_destructor(focus_cycle_destructor);
|
||||
client_remove_destructor(focus_tried_hide_notify);
|
||||
client_remove_hide_notify(focus_tried_hide_notify);
|
||||
|
||||
/* reset focus to root */
|
||||
|
|
Loading…
Reference in a new issue