mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Use the notify name string instead of going via an enum and change
existing hooks to use notifys instead.
This commit is contained in:
4
layout.c
4
layout.c
@ -578,7 +578,7 @@ layout_resize_pane(struct window_pane *wp, enum layout_type type, int change,
|
||||
/* Fix cell offsets. */
|
||||
layout_fix_offsets(wp->window->layout_root);
|
||||
layout_fix_panes(wp->window, wp->window->sx, wp->window->sy);
|
||||
notify_window_layout_changed(wp->window);
|
||||
notify_window("window-layout-changed", wp->window);
|
||||
}
|
||||
|
||||
/* Helper function to grow pane. */
|
||||
@ -980,5 +980,5 @@ layout_close_pane(struct window_pane *wp)
|
||||
layout_fix_offsets(w->layout_root);
|
||||
layout_fix_panes(w, w->sx, w->sy);
|
||||
}
|
||||
notify_window_layout_changed(w);
|
||||
notify_window("window-layout-changed", w);
|
||||
}
|
||||
|
Reference in New Issue
Block a user